diff options
author | Hans Goudey <h.goudey@me.com> | 2020-06-21 17:55:16 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-06-21 17:55:16 +0300 |
commit | f2b5f731d5597547259a2601b1a8173ae42ccd84 (patch) | |
tree | 7b760a7941e38d48cd7c73228e4b947fd08594c7 /release/scripts/startup/bl_ui/properties_constraint.py | |
parent | 0de14fbe78f529edfd7aff151878ceb883006fee (diff) |
UI: Only show constaint head/tail property with subtarget
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_constraint.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_constraint.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_constraint.py b/release/scripts/startup/bl_ui/properties_constraint.py index cbca5d9ea67..b4fab47fc08 100644 --- a/release/scripts/startup/bl_ui/properties_constraint.py +++ b/release/scripts/startup/bl_ui/properties_constraint.py @@ -102,7 +102,7 @@ class ConstraintButtonsPanel(Panel): if con.target.type == 'ARMATURE': col.prop_search(con, "subtarget", con.target.data, "bones", text="Bone") - if hasattr(con, "head_tail"): + if con.subtarget and hasattr(con, "head_tail"): row = col.row(align=True) row.use_property_decorate = False sub = row.row(align=True) |