[Bf-blender-cvs] [f2b5f731d55] master: UI: Only show constaint head/tail property with subtarget

Hans Goudey noreply at git.blender.org
Sun Jun 21 16:55:25 CEST 2020


Commit: f2b5f731d5597547259a2601b1a8173ae42ccd84
Author: Hans Goudey
Date:   Sun Jun 21 10:55:16 2020 -0400
Branches: master
https://developer.blender.org/rBf2b5f731d5597547259a2601b1a8173ae42ccd84

UI: Only show constaint head/tail property with subtarget

===================================================================

M	release/scripts/startup/bl_ui/properties_constraint.py

===================================================================

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)



More information about the Bf-blender-cvs mailing list