Head/Tail property was never added for Track To and Stretch To constraint types. Added to RNA and changed UI check.

This commit is contained in:
Roland Hess
2009-11-28 03:45:40 +00:00
parent afe4879991
commit c6b4c2716a
2 changed files with 13 additions and 1 deletions

View File

@@ -77,7 +77,7 @@ class ConstraintButtonsPanel(bpy.types.Panel):
else:
layout.prop_object(con, "subtarget", con.target.data, "bones", text="")
if con.type == 'COPY_LOCATION':
if con.type in ('COPY_LOCATION', 'STRETCH_TO', 'TRACK_TO'):
row = layout.row()
row.label(text="Head/Tail:")
row.prop(con, "head_tail", text="")