Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-06-27 05:15:31 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-06-27 05:15:31 +0400
commit222fe6b1a5d49f67177cbb762f55a0e482145f5d (patch)
tree2ff249d49385233c34cddd473e457a76a17b90c8 /release/ui/buttons_object_constraint.py
parentd839a9ae9ccbf17375e28cc92aa75a0cb4cf6b11 (diff)
UI
* Search popup + autocomplete for bones, vertex groups, etc. This is done with layout.item_pointerR, specifying an RNA collection to take the items from. Used by constraints and modifiers. * Some tests with the List template, ignore those for now..
Diffstat (limited to 'release/ui/buttons_object_constraint.py')
-rw-r--r--release/ui/buttons_object_constraint.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/release/ui/buttons_object_constraint.py b/release/ui/buttons_object_constraint.py
index 52e43406790..3048bdaa399 100644
--- a/release/ui/buttons_object_constraint.py
+++ b/release/ui/buttons_object_constraint.py
@@ -77,13 +77,14 @@ class ConstraintButtonsPanel(bpy.types.Panel):
if con.target and subtargets:
if con.target.type == "ARMATURE":
- layout.itemR(con, "subtarget", text="Bone") # XXX autocomplete
+ layout.item_pointerR(con, "subtarget", con.target.data, "bones", text="Bone")
- row = layout.row()
- row.itemL(text="Head/Tail:")
- row.itemR(con, "head_tail", text="")
+ if con.type == 'COPY_LOCATION':
+ row = layout.row()
+ row.itemL(text="Head/Tail:")
+ row.itemR(con, "head_tail", text="")
elif con.target.type in ("MESH", "LATTICE"):
- layout.itemR(con, "subtarget", text="Vertex Group") # XXX autocomplete
+ layout.item_pointerR(con, "subtarget", con.target, "vertex_groups", text="Vertex Group")
def child_of(self, layout, con):
self.target_template(layout, con)