Ver código fonte

GCLoader: Fixed travel data parsing. (#22469)

Mr.doob 3 anos atrás
pai
commit
4a67e0273d
1 arquivos alterados com 1 adições e 1 exclusões
  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 ) {