Fix Surface Deform not unbinding if target is removed

This commit is contained in:
Luca Rood
2017-04-20 17:48:37 +02:00
parent 52295dd480
commit ca958642fa
2 changed files with 2 additions and 2 deletions

View File

@@ -969,11 +969,11 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
layout.separator()
col = layout.column()
col.active = md.target is not None
if md.is_bound:
col.operator("object.surfacedeform_bind", text="Unbind")
else:
col.active = md.target is not None
col.operator("object.surfacedeform_bind", text="Bind")
def UV_PROJECT(self, layout, ob, md):