From 3fc0a03fd1f99c0d5d3b0bea15ed96ea928d8d25 Mon Sep 17 00:00:00 2001 From: Anime Nyan Date: Sat, 3 Jul 2021 00:40:48 +1000 Subject: [PATCH] correct show message function calls to call the correct show message class --- DBDFixAnimations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DBDFixAnimations.py b/DBDFixAnimations.py index ec94f9c..a274d0f 100644 --- a/DBDFixAnimations.py +++ b/DBDFixAnimations.py @@ -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'} @@ -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'}