[Bf-extensions-cvs] [d777821f] blender-v2.90-release: Fix T79532: Crash on undo after glTF import

Campbell Barton noreply at git.blender.org
Wed Aug 5 03:36:49 CEST 2020


Commit: d777821fd6ad33be4c8bdf8dbedb28827f57caa5
Author: Campbell Barton
Date:   Wed Aug 5 11:36:21 2020 +1000
Branches: blender-v2.90-release
https://developer.blender.org/rBAd777821fd6ad33be4c8bdf8dbedb28827f57caa5

Fix T79532: Crash on undo after glTF import

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

M	io_scene_gltf2/__init__.py

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

diff --git a/io_scene_gltf2/__init__.py b/io_scene_gltf2/__init__.py
index 70a06504..d911c97f 100755
--- a/io_scene_gltf2/__init__.py
+++ b/io_scene_gltf2/__init__.py
@@ -844,6 +844,7 @@ class ImportGLTF2(Operator, ImportHelper):
     """Load a glTF 2.0 file"""
     bl_idname = 'import_scene.gltf'
     bl_label = 'Import glTF 2.0'
+    bl_options = {'REGISTER', 'UNDO'}
 
     filter_glob: StringProperty(default="*.glb;*.gltf", options={'HIDDEN'})



More information about the Bf-extensions-cvs mailing list