UI: Only show constaint head/tail property with subtarget
This commit is contained in:
parent
0de14fbe78
commit
f2b5f731d5
Notes:
blender-bot
2024-06-05 14:57:53 +02: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, Blender freezes when repeating baking textures 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
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue