@@ -484,6 +484,12 @@ class LineMaterial extends ShaderMaterial {
set worldUnits( value ) {
+ if ( ( value === true ) !== this.worldUnits ) {
+
+ this.needsUpdate = true;
+ }
if ( value === true ) {
this.defines.WORLD_UNITS = '';
@@ -228,7 +228,6 @@
gui.add( param, 'world units' ).onChange( function ( val ) {
matLine.worldUnits = val;
- matLine.needsUpdate = true;
} );
@@ -307,10 +307,7 @@
gui.add( params, 'world units' ).onChange( function ( val ) {
-
matThresholdLine.worldUnits = val;
- matThresholdLine.needsUpdate = true;