Skip to content

Commit

Permalink
追加直後にUndoするとクラッシュを引き起こす問題を修正 (close #3)
Browse files Browse the repository at this point in the history
  • Loading branch information
todashuta committed May 2, 2023
1 parent 74764d0 commit d9d4772
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions snap_cursor_to_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def addBoundingBoxMeshCube(context, report):
class AddBoundingBoxEmptyCube(bpy.types.Operator):
bl_idname = "view3d.add_bounding_box_empty_cube"
bl_label = "Add Bounding Box Empty Cube of selected item(s)"
bl_options = {"UNDO"}

@classmethod
def poll(cls, context):
Expand All @@ -96,6 +97,7 @@ def execute(self, context):
class AddBoundingBoxMeshCube(bpy.types.Operator):
bl_idname = "view3d.add_bounding_box_mesh_cube"
bl_label = "Add Bounding Box Mesh Cube of selected item(s)"
bl_options = {"UNDO"}

@classmethod
def poll(cls, context):
Expand Down

0 comments on commit d9d4772

Please sign in to comment.