def exit_edit_weights(self,context):
tool_settings = context.scene.tool_settings
tool_settings.unified_paint_settings.use_unified_strength = self.use_unified_strength
set_local_view(False)
armature = get_armature(get_sprite_object(context.active_object))
bpy.ops.object.mode_set(mode="OBJECT")
for i,bone_layer in enumerate(bone_layers):
armature.data.layers[i] = bone_layer
for obj in context.scene.objects:
obj.select = False
for name in self.selected_objects:
obj = bpy.data.objects[name]
obj.select = True
context.scene.objects.active = bpy.data.objects[self.active_object]
self.unhide_non_deform_bones(context)
self.hide_deform_bones(context)
评论列表
文章目录