Refactoring files operator

This commit is contained in:
2024-05-09 01:20:43 +02:00
parent 6cf3d224d2
commit d1b2c0b4a9
3 changed files with 17 additions and 15 deletions
+14
View File
@@ -0,0 +1,14 @@
import bpy
class MakeBasicCollision(bpy.types.Operator):
"""From selected mesh, make a collision object"""
bl_idname = 'graou.make_collision'
bl_label = 'Generate a collision from selected mesh'
@classmethod
def poll(cls, context):
return bpy.context.object
def execute(self, context):
return {'FINISHED'}