UI: Only show constaint head/tail property with subtarget

This commit is contained in:
Hans Goudey 2020-06-21 10:55:16 -04:00
parent 0de14fbe78
commit f2b5f731d5
Notes: blender-bot 2023-02-14 09:38:57 +01:00
Referenced by issue #86500, Cycles: tapering hair transparency fails in '3D Curves' mode [regression] (probably caused by embree)
Referenced by issue #86171, Cycles freeze on render and texture baking (with packed textures)
Referenced by issue #82483, Viewport Rendering and Texture Baking freezes Blender
Referenced by issue #80125, Constraint missing after save and reopen the blend file (fixed in 2.90 - request to backport to LTS)
Referenced by issue #78134, GPencil: interpolation tool crash
1 changed files with 1 additions and 1 deletions

View File

@ -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)