Josh Engebretson 10 years ago
parent
commit
3ed9aa23c3

+ 1 - 2
Script/AtomicEditor/ui/frames/inspector/ComponentInspector.ts

@@ -96,7 +96,6 @@ class ComponentInspector extends Atomic.UISection {
 
 
         this.text = component.typeName;
         this.text = component.typeName;
 
 
-        component.scene.sendEvent("SceneEditSerializable", { serializable: component, operation: 0});
         this.subscribeToEvent(component, "SceneEditStateChange", (data) => this.handleSceneEditStateChangeEvent(data));
         this.subscribeToEvent(component, "SceneEditStateChange", (data) => this.handleSceneEditStateChangeEvent(data));
 
 
         // For JSComponents append the filename
         // For JSComponents append the filename
@@ -301,7 +300,7 @@ class ComponentInspector extends Atomic.UISection {
           this.bindings[i].objectLocked = true;
           this.bindings[i].objectLocked = true;
           this.bindings[i].setWidgetValueFromObject();
           this.bindings[i].setWidgetValueFromObject();
           this.bindings[i].objectLocked = false;
           this.bindings[i].objectLocked = false;
-      }      
+      }
 
 
     }
     }
 
 

+ 0 - 11
Script/AtomicEditor/ui/frames/inspector/InspectorFrame.ts

@@ -35,7 +35,6 @@ class InspectorFrame extends ScriptWidget {
 
 
         this.subscribeToEvent(EditorEvents.EditResource, (data) => this.handleEditResource(data));
         this.subscribeToEvent(EditorEvents.EditResource, (data) => this.handleEditResource(data));
         this.subscribeToEvent("ProjectUnloaded", (data) => this.handleProjectUnloaded(data));
         this.subscribeToEvent("ProjectUnloaded", (data) => this.handleProjectUnloaded(data));
-        this.subscribeToEvent("NodeRemoved", (ev: Atomic.NodeRemovedEvent) => this.handleNodeRemoved(ev));
 
 
         this.subscribeToEvent(EditorEvents.ActiveSceneEditorChange, (data) => this.handleActiveSceneEditorChanged(data));
         this.subscribeToEvent(EditorEvents.ActiveSceneEditorChange, (data) => this.handleActiveSceneEditorChanged(data));
 
 
@@ -161,16 +160,6 @@ class InspectorFrame extends ScriptWidget {
 
 
     }
     }
 
 
-    handleNodeRemoved(ev: Atomic.NodeRemovedEvent) {
-
-        if (this.nodeInspector && this.nodeInspector.node != ev.node)
-            return;
-
-        this.closeNodeInspector();
-
-    }
-
-
     inspectNode(node: Atomic.Node) {
     inspectNode(node: Atomic.Node) {
 
 
         if (!node) return;
         if (!node) return;

+ 0 - 1
Script/AtomicEditor/ui/frames/inspector/NodeInspector.ts

@@ -135,7 +135,6 @@ class NodeInspector extends ScriptWidget {
 
 
         this.node = node;
         this.node = node;
 
 
-        node.scene.sendEvent("SceneEditSerializable", { serializable: node, operation: 0 });
         this.subscribeToEvent(node, "SceneEditStateChange", (data) => this.handleSceneEditStateChangeEvent(data));
         this.subscribeToEvent(node, "SceneEditStateChange", (data) => this.handleSceneEditStateChangeEvent(data));
 
 
         this.isPrefab = this.detectPrefab(node);
         this.isPrefab = this.detectPrefab(node);