diff --git a/__init__.py b/__init__.py index b9a9e6e..cca1df2 100644 --- a/__init__.py +++ b/__init__.py @@ -40,8 +40,8 @@ 'author': 'Sketchfab', 'license': 'APACHE2', 'deps': '', - 'version': (1, 6, 1), - "blender": (2, 80, 0), + 'version': (1, 6, 2), + "blender": (4, 3, 2), 'location': 'View3D > Tools > Sketchfab', 'warning': '', 'wiki_url': 'https://github.com/sketchfab/blender-plugin/releases', @@ -1389,8 +1389,8 @@ def execute(self, context): return {'FINISHED'} def modal(self, context, event): - if bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE"]: - bpy.context.scene.render.engine = "BLENDER_EEVEE" + if bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE_NEXT", "BLENDER_WORKBENCH"]: + bpy.context.scene.render.engine = "BLENDER_EEVEE_NEXT" try: old_objects = [o.name for o in bpy.data.objects] # Get the current objects inorder to find the new node hierarchy bpy.ops.import_scene.gltf(filepath=self.gltf_path)