Răsfoiți Sursa

[editor] Remove unused method moveObject (#29078)

Samuel Rigaud 1 an în urmă
părinte
comite
eac8d93ef6
1 a modificat fișierele cu 0 adăugiri și 24 ștergeri
  1. 0 24
      editor/js/Editor.js

+ 0 - 24
editor/js/Editor.js

@@ -196,30 +196,6 @@ Editor.prototype = {
 
 	},
 
-	moveObject: function ( object, parent, before ) {
-
-		if ( parent === undefined ) {
-
-			parent = this.scene;
-
-		}
-
-		parent.add( object );
-
-		// sort children array
-
-		if ( before !== undefined ) {
-
-			var index = parent.children.indexOf( before );
-			parent.children.splice( index, 0, object );
-			parent.children.pop();
-
-		}
-
-		this.signals.sceneGraphChanged.dispatch();
-
-	},
-
 	nameObject: function ( object, name ) {
 
 		object.name = name;

粤ICP备19079148号