Skip to content

Commit

Permalink
Added MESH_ as possible class template; Renamed OBJECT_OT_AutoDecimat…
Browse files Browse the repository at this point in the history
…e to MESH_OT_AutoDecimate, because standards
  • Loading branch information
Juraji committed Oct 6, 2024
1 parent bee2154 commit 275463a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[DESIGN]
min-public-methods=0
class-rgx=^(VIEW3D_|OBJECT_)?([A-Z]T_)?[A-Z][a-zA-Z0-9]*$
class-rgx=^(VIEW3D_|OBJECT_|MESH_)?([A-Z]T_)?[A-Z][a-zA-Z0-9]*$
max-line-length=120

[MESSAGES CONTROL]
Expand Down
6 changes: 3 additions & 3 deletions modules/auto_decimate.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class AutoDecimateProperties(PropertyGroup):
)


class OBJECT_OT_AutoDecimate(Operator):
class MESH_OT_AutoDecimate(Operator):
bl_idname = "object.juraji_auto_decimate"
bl_label = "Apply decimation"
bl_description = "Decimate the current selected objects"
Expand Down Expand Up @@ -91,15 +91,15 @@ def draw(self, context):


def register():
bpy.utils.register_class(OBJECT_OT_AutoDecimate)
bpy.utils.register_class(MESH_OT_AutoDecimate)
bpy.utils.register_class(VIEW3D_PT_AutoDecimate)
bpy.utils.register_class(AutoDecimateProperties)

bpy.types.Scene.juraji_auto_decimate = PointerProperty(type=AutoDecimateProperties)


def unregister():
bpy.utils.unregister_class(OBJECT_OT_AutoDecimate)
bpy.utils.unregister_class(MESH_OT_AutoDecimate)
bpy.utils.unregister_class(VIEW3D_PT_AutoDecimate)
bpy.utils.unregister_class(AutoDecimateProperties)

Expand Down

0 comments on commit 275463a

Please sign in to comment.