changeset 1529:af8dd27bf450

Remove layer from button
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 31 Aug 2011 22:30:02 +0800
parents b7d70341ee57
children 9e7e5f79acc6
files pyink/MBScene.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pyink/MBScene.py	Wed Aug 31 22:23:04 2011 +0800
+++ b/pyink/MBScene.py	Wed Aug 31 22:30:02 2011 +0800
@@ -268,6 +268,9 @@
 	pass
 
     def doRemoveLayer(self, w):
+	domview = self._domviewui
+	layer_idx, frame_idx = domview.get_current_frame()
+	domview.rm_layer(layer_idx)
 	pass
 
     def doInsertKeyScene(self,w):