diff --git a/__init__.py b/__init__.py index b9a9e6e..b165f98 100644 --- a/__init__.py +++ b/__init__.py @@ -1389,8 +1389,10 @@ def execute(self, context): return {'FINISHED'} def modal(self, context, event): - if bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE"]: + if bpy.app.version < (4, 2, 0) and bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE"]: bpy.context.scene.render.engine = "BLENDER_EEVEE" + elif bpy.context.scene.render.engine not in ["CYCLES", "BLENDER_EEVEE_NEXT"]: + 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)