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:
authorHans Goudey <h.goudey@me.com>2020-06-21 17:55:16 +0300
committerHans Goudey <h.goudey@me.com>2020-06-21 17:55:16 +0300
commitf2b5f731d5597547259a2601b1a8173ae42ccd84 (patch)
tree7b760a7941e38d48cd7c73228e4b947fd08594c7 /release
parent0de14fbe78f529edfd7aff151878ceb883006fee (diff)
UI: Only show constaint head/tail property with subtarget
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_constraint.py2
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)