Mercurial > MadButterfly
comparison pyink/consistency.py @ 1261:6177f5d0ef01
Remove the layer when a layer group being removed.
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Tue, 11 Jan 2011 17:59:17 +0800 |
parents | 027cd060d9ba |
children | 2f861eea1214 |
comparison
equal
deleted
inserted
replaced
1260:bbd6bc0d079a | 1261:6177f5d0ef01 |
---|---|
81 self._domview.find_key_from_group(group_id) | 81 self._domview.find_key_from_group(group_id) |
82 except ValueError: | 82 except ValueError: |
83 pass | 83 pass |
84 else: # We have found the key frame. | 84 else: # We have found the key frame. |
85 self._domview.unmark_key(layer_idx, start) | 85 self._domview.unmark_key(layer_idx, start) |
86 return | |
87 | |
88 # | |
89 # Remove layers | |
90 # | |
91 if child_name == 'svg:g': | |
92 try: | |
93 layer_idx = self._domview.find_layer_from_group(group_id) | |
94 except ValueError: | |
95 pass | |
96 else: # It is a layer group | |
97 self._domview.rm_layer(layer_idx) | |
98 pass | |
86 pass | 99 pass |
87 pass | 100 pass |
88 | 101 |
89 def do_insert_node(self, node, child): | 102 def do_insert_node(self, node, child): |
90 pass | 103 pass |