Explorar o código

Merge pull request #19890 from WestLangley/dev_fat_lines

LineSegmentsGeometry: set needsUpdate directly
Mr.doob %!s(int64=5) %!d(string=hai) anos
pai
achega
d32c92b00a

+ 1 - 1
examples/js/lines/LineSegmentsGeometry.js

@@ -37,7 +37,7 @@ THREE.LineSegmentsGeometry.prototype = Object.assign( Object.create( THREE.Insta
 
 			end.applyMatrix4( matrix );
 
-			start.data.needsUpdate = true;
+			start.needsUpdate = true;
 
 		}
 

+ 1 - 1
examples/jsm/lines/LineSegmentsGeometry.js

@@ -47,7 +47,7 @@ LineSegmentsGeometry.prototype = Object.assign( Object.create( InstancedBufferGe
 
 			end.applyMatrix4( matrix );
 
-			start.data.needsUpdate = true;
+			start.needsUpdate = true;
 
 		}