From 6bb5045448850031f23ead731f77a21d5f19a4c2 Mon Sep 17 00:00:00 2001 From: Pratik Borhade Date: Wed, 10 Jan 2024 15:36:52 +0530 Subject: [PATCH] Fix #116962: Image as plane fails with EEVEE next This is due to missing check for BLENDER_EEVEE_NEXT --- io_import_images_as_planes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index bcb290c87..434fd5b58 100644 --- a/io_import_images_as_planes.py +++ b/io_import_images_as_planes.py @@ -911,7 +911,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper): # Core functionality def invoke(self, context, event): engine = context.scene.render.engine - if engine not in {'CYCLES', 'BLENDER_EEVEE'}: + if engine not in {'CYCLES', 'BLENDER_EEVEE','BLENDER_EEVEE_NEXT'}: if engine != 'BLENDER_WORKBENCH': self.report({'ERROR'}, tip_("Cannot generate materials for unknown %s render engine") % engine) return {'CANCELLED'} @@ -986,7 +986,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper): # Configure material engine = context.scene.render.engine - if engine in {'CYCLES', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}: + if engine in {'CYCLES', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'}: material = self.create_cycles_material(context, img_spec) # Create and position plane object -- 2.30.2