From f2b5f731d5597547259a2601b1a8173ae42ccd84 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Sun, 21 Jun 2020 10:55:16 -0400 Subject: UI: Only show constaint head/tail property with subtarget --- release/scripts/startup/bl_ui/properties_constraint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'release') 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) -- cgit v1.2.3