Mercurial > MadButterfly
diff pyink/MBScene.py @ 1265:ca301f6abef7
Support undo for insert key frame/rm keyframe. We will refresh all layers and scenes since it is not feasible to collect these changes and update the layers and scenes. We may scan two level only in the future to improve the performance.
author | wycc |
---|---|
date | Wed, 12 Jan 2011 15:01:14 +0800 |
parents | ff410dcdea02 |
children | d4559e7f82cd |
line wrap: on
line diff
--- a/pyink/MBScene.py Wed Jan 12 12:25:45 2011 +0800 +++ b/pyink/MBScene.py Wed Jan 12 15:01:14 2011 +0800 @@ -70,6 +70,7 @@ self.current = 0 self._domviewui = create_domview_ui() + self._locker = self._domviewui pass def change_active_frame(self, node): @@ -255,6 +256,14 @@ self._lockui = False return + def lock(self): + self._domviewui.lock() + pass + + def unlock(self): + self._domviewui.unlock() + pass + def doExtendScene(self,w): self._lockui = True