Mercurial > MadButterfly
comparison pyink/MBScene.py @ 1192:79a3f82edaac
Fix issue of losing keyframe after inerst a node in the scene
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Sun, 02 Jan 2011 14:18:48 +0800 |
parents | 6442fb198418 |
children | 0e3a65b7b00c |
comparison
equal
deleted
inserted
replaced
1191:6442fb198418 | 1192:79a3f82edaac |
---|---|
530 for scene_group in node.childList(): | 530 for scene_group in node.childList(): |
531 if scene_group.name() != 'svg:g': | 531 if scene_group.name() != 'svg:g': |
532 continue | 532 continue |
533 | 533 |
534 try: | 534 try: |
535 label = scene.getAttribute('inkscape:label') | 535 label = scene_group.getAttribute('inkscape:label') |
536 if label == 'dup': | 536 if label == 'dup': |
537 # TODO: remove this since this functio is for | 537 # TODO: remove this since this functio is for |
538 # parsing. Why do this here? | 538 # parsing. Why do this here? |
539 node.removeChild(scene_group) | 539 node.removeChild(scene_group) |
540 pass | 540 continue |
541 except: | 541 except: |
542 pass | 542 pass |
543 | 543 |
544 try: | 544 try: |
545 scene_group_id = scene_group.getAttribute('id') | 545 scene_group_id = scene_group.getAttribute('id') |