Explorar o código

GCLoader: Fixed travel data parsing. (#22469)

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
4a67e0273d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/jsm/loaders/GCodeLoader.js

+ 1 - 1
examples/jsm/loaders/GCodeLoader.js

@@ -153,7 +153,7 @@ class GCodeLoader extends Loader {
 				//Layer change detection is or made by watching Z, it's made by watching when we extrude at a new Z position
 				if ( delta( state.e, line.e ) > 0 ) {
 
-					line.extruding = delta( state.e, line.e ) > 0;
+					state.extruding = delta( state.e, line.e ) > 0;
 
 					if ( currentLayer == undefined || line.z != currentLayer.z ) {