Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit f0a0966

Browse files
PratikBorhade302Pratik Borhade
authored and
Pratik Borhade
committed
Fix #116962: Image as plane fails with EEVEE next
This is due to missing check for `BLENDER_EEVEE_NEXT` Pull Request: https://projects.blender.org/blender/blender-addons/pulls/105112
1 parent ce17703 commit f0a0966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io_import_images_as_planes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def draw(self, context):
911911
# Core functionality
912912
def invoke(self, context, event):
913913
engine = context.scene.render.engine
914-
if engine not in {'CYCLES', 'BLENDER_EEVEE'}:
914+
if engine not in {'CYCLES', 'BLENDER_EEVEE','BLENDER_EEVEE_NEXT'}:
915915
if engine != 'BLENDER_WORKBENCH':
916916
self.report({'ERROR'}, tip_("Cannot generate materials for unknown %s render engine") % engine)
917917
return {'CANCELLED'}
@@ -986,7 +986,7 @@ def single_image_spec_to_plane(self, context, img_spec):
986986

987987
# Configure material
988988
engine = context.scene.render.engine
989-
if engine in {'CYCLES', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}:
989+
if engine in {'CYCLES', 'BLENDER_EEVEE', 'BLENDER_EEVEE_NEXT', 'BLENDER_WORKBENCH'}:
990990
material = self.create_cycles_material(context, img_spec)
991991

992992
# Create and position plane object

0 commit comments

Comments
 (0)