|
|
@@ -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;
|