Skip to content

Commit

Permalink
correct show message function calls to call the correct show message …
Browse files Browse the repository at this point in the history
…class
  • Loading branch information
AnimNyan committed Jul 2, 2021
1 parent 40fdb35 commit 3fc0a03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions DBDFixAnimations.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ def execute(self, context):
if (active_object.type == "ARMATURE"):
remove_problem_bones_animations(active_object, is_problem_jaw_bone)
success_message = "The Problem Animation has been fixed successfully!"
bpy.ops.fuseskeletons.show_message(message = success_message)
bpy.ops.pskpsa.show_message_operator(message = success_message)
log(success_message)

#throw error message if active object is not a skeleton
else:
error_message = "Error: Active Object is not an Armature, ensure the active object is the Skeleton with problem animations."
bpy.ops.fuseskeletons.show_message(message = error_message)
bpy.ops.pskpsa.show_message_operator(message = error_message)
log(error_message)

return {'FINISHED'}
Expand Down Expand Up @@ -82,13 +82,13 @@ def execute(self, context):
remove_problem_bones_animations(active_object, is_problem_jaw_bone)

success_message = "All Problem Animations have been fixed successfully!"
bpy.ops.fuseskeletons.show_message(message = success_message)
bpy.ops.pskpsa.show_message_operator(message = success_message)
log(success_message)

#throw error message if active object is not a skeleton
else:
error_message = "Error: Active Object is not an Armature, ensure the active object is the Skeleton with problem animations."
bpy.ops.fuseskeletons.show_message(message = error_message)
bpy.ops.pskpsa.show_message_operator(message = error_message)
log(error_message)

return {'FINISHED'}
Expand Down

0 comments on commit 3fc0a03

Please sign in to comment.