remove checks for active object in the weight panel, this is incorrect for weight transfer and we better rely on operators poll functions.
This commit is contained in:
@@ -1115,10 +1115,7 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel, Panel):
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
ob = context.active_object
|
||||
|
||||
col = layout.column()
|
||||
col.active = ob.vertex_groups.active is not None
|
||||
col.operator("object.vertex_group_normalize_all", text="Normalize All")
|
||||
col.operator("object.vertex_group_normalize", text="Normalize")
|
||||
col.operator("object.vertex_group_mirror", text="Mirror")
|
||||
@@ -1126,10 +1123,7 @@ class VIEW3D_PT_tools_weightpaint(View3DPanel, Panel):
|
||||
col.operator("object.vertex_group_clean", text="Clean")
|
||||
col.operator("object.vertex_group_levels", text="Levels")
|
||||
col.operator("object.vertex_group_blend", text="Blend")
|
||||
col = layout.column()
|
||||
col.operator("object.vertex_group_transfer_weight", text="Transfer Weights")
|
||||
col = layout.column()
|
||||
col.active = ob.vertex_groups.active is not None
|
||||
col.operator("object.vertex_group_limit_total", text="Limit Total")
|
||||
col.operator("object.vertex_group_fix", text="Fix Deforms")
|
||||
col.operator("paint.weight_gradient")
|
||||
|
Reference in New Issue
Block a user