Browse Source

Handle enum select undo/redo

Josh Engebretson 10 years ago
parent
commit
58d112c3ef
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Script/AtomicEditor/ui/frames/inspector/DataBinding.ts

+ 4 - 0
Script/AtomicEditor/ui/frames/inspector/DataBinding.ts

@@ -512,6 +512,10 @@ class DataBinding {
 
                 this.object.setAttribute(this.attrInfo.name, Number(ev.refid) - 1);
                 this.setWidgetValueFromObject();
+                // TODO: once new base class stuff is in, should be able to check for type
+                if (this.object["scene"])
+                    this.object["scene"].sendEvent("SceneEditSerializable", { serializable: this.object, operation: 1 });
+
 
             }