[Bf-extensions-cvs] [48466c23] master: curve_simplify: fix load tests I think

meta-androcto noreply at git.blender.org
Sat Sep 14 17:54:30 CEST 2019


Commit: 48466c23ad6c08bea25af704d825fe895e1acb73
Author: meta-androcto
Date:   Sun Sep 15 01:54:08 2019 +1000
Branches: master
https://developer.blender.org/rBA48466c23ad6c08bea25af704d825fe895e1acb73

curve_simplify: fix load tests I think

===================================================================

M	curve_simplify.py

===================================================================

diff --git a/curve_simplify.py b/curve_simplify.py
index 4b45f9c1..2f6d1a8f 100644
--- a/curve_simplify.py
+++ b/curve_simplify.py
@@ -378,17 +378,17 @@ def fcurves_simplify(context, obj, options, fcurves):
 # ### MENU append ###
 
 def menu_func(self, context):
-    self.layout.operator("graph.simplify")
+    self.layout.operator("graph.simplifya")
 
 
 def menu(self, context):
-    self.layout.operator("curve.simplify", text="Curve Simplify", icon="CURVE_DATA")
+    self.layout.operator("curve.simplifya", text="Curve Simplify", icon="CURVE_DATA")
 
 
 # ### ANIMATION CURVES OPERATOR ###
 
-class GRAPH_OT_simplify(Operator):
-    bl_idname = "graph.simplify"
+class GRAPH_OT_simplifya(Operator):
+    bl_idname = "graph.simplifya"
     bl_label = "Simplify F-Curves"
     bl_description = ("Simplify selected Curves\n"
                       "Does not operate on short Splines (less than 6 points)")
@@ -479,8 +479,8 @@ class GRAPH_OT_simplify(Operator):
 
 
 # ### Curves OPERATOR ###
-class CURVE_OT_simplify(Operator):
-    bl_idname = "curve.simplify"
+class CURVE_OT_simplifya(Operator):
+    bl_idname = "curve.simplifya"
     bl_label = "Simplify Curves"
     bl_description = ("Simplify the existing Curve based upon the chosen settings\n"
                       "Notes: Needs an existing Curve object,\n"
@@ -581,7 +581,7 @@ class CURVE_OT_simplify(Operator):
 
             main(context, obj, options, curve_dimension)
         except Exception as e:
-            error_handlers(self, "curve.simplify", e, "Simplify Curves")
+            error_handlers(self, "curve.simplifya", e, "Simplify Curves")
             return {'CANCELLED'}
 
         return {'FINISHED'}
@@ -645,9 +645,9 @@ def main_rd(context, distance = 0.01):
 
 
 
-class Curve_OT_CurveRemvDbs(bpy.types.Operator):
+class Curve_OT_CurveRemvDbsa(bpy.types.Operator):
     """Merge consecutive points that are near to each other"""
-    bl_idname = 'curve.remove_doubles'
+    bl_idname = 'curve.remove_doublesa'
     bl_label = 'Merge By Distance'
     bl_options = {'REGISTER', 'UNDO'}
 
@@ -664,13 +664,13 @@ class Curve_OT_CurveRemvDbs(bpy.types.Operator):
         return {'FINISHED'}
 
 def menu_func_rd(self, context):
-    self.layout.operator(Curve_OT_CurveRemvDbs.bl_idname, text='Merge By Distance')
+    self.layout.operator(Curve_OT_CurveRemvDbsa.bl_idname, text='Merge By Distance')
 
 # Register
 classes = [
-    GRAPH_OT_simplify,
-    CURVE_OT_simplify,
-    Curve_OT_CurveRemvDbs,
+    GRAPH_OT_simplifya,
+    CURVE_OT_simplifya,
+    Curve_OT_CurveRemvDbsa,
 ]



More information about the Bf-extensions-cvs mailing list