diff options
author | Geoffrey Bantle <hairbat@yahoo.com> | 2008-01-11 17:25:01 +0300 |
---|---|---|
committer | Geoffrey Bantle <hairbat@yahoo.com> | 2008-01-11 17:25:01 +0300 |
commit | e1a45c73b6ee944a4bbcea6a8289068e9d83b915 (patch) | |
tree | 65dcb23d7fe86222470d1bd2c16ad0c03449eabe /release/scripts/flt_toolbar.py | |
parent | e83b7bb46c02d2969bb8278fab1acd1e7fd2b460 (diff) |
-> Fix for select Xref tool
Select Xref tool was broken. Should work now.
Diffstat (limited to 'release/scripts/flt_toolbar.py')
-rw-r--r-- | release/scripts/flt_toolbar.py | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/release/scripts/flt_toolbar.py b/release/scripts/flt_toolbar.py index d8a4aa8b4a0..e7b0bcd90b2 100644 --- a/release/scripts/flt_toolbar.py +++ b/release/scripts/flt_toolbar.py @@ -231,7 +231,19 @@ def xref_create(): xrefscene.update(1) state["activeScene"].update(1) - + +def xref_select(): + state = update_state() + candidates = list() + scenelist = [scene.name for scene in Blender.Scene.Get()] + for object in state["activeScene"].objects: + if object.type == 'Empty' and object.enableDupGroup == True and object.DupGroup: + candidates.append(object) + + for object in candidates: + if object.DupGroup.name in scenelist: + object.sel = 1 + def xref_edit(): global xrefprefix global xrefstack @@ -429,7 +441,7 @@ def clight_make(): def event(evt,val): if evt == Draw.ESCKEY: Draw.Exit() - + def but_event(evt): global xrefprefix global xrefstack @@ -447,7 +459,7 @@ def but_event(evt): if evt == evcode["XREF_EDIT"]: xref_edit() if evt == evcode["XREF_SELECT"]: - select_by_typecode(63) + xref_select() if evt == evcode["XREF_MAKE"]: xref_create() #do scene buttons |