Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-08 18:31:39 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-08 18:39:38 +0300
commitcd2cb421fd79772118114d17380697459c9eb18a (patch)
treef08fc76fb1f270bdcb14eeeb5f415502eacfb1e5 /io_import_images_as_planes.py
parent668b2abbf54ad286bfdea09ab5a7858c87777d22 (diff)
Fix uses of outdated workbench render engine name.
Diffstat (limited to 'io_import_images_as_planes.py')
-rw-r--r--io_import_images_as_planes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py
index 8030e63b..5cc15311 100644
--- a/io_import_images_as_planes.py
+++ b/io_import_images_as_planes.py
@@ -794,7 +794,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
box.prop(self, "emit_strength")
engine = context.scene.render.engine
- if engine not in ('CYCLES', 'BLENDER_EEVEE', 'BLENDER_OPENGL'):
+ if engine not in ('CYCLES', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'):
box.label(text="%s is not supported" % engine, icon='ERROR')
box.prop(self, "overwrite_material")
@@ -853,7 +853,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
def invoke(self, context, event):
engine = context.scene.render.engine
if engine not in {'CYCLES', 'BLENDER_EEVEE'}:
- if engine not in {'BLENDER_OPENGL'}:
+ if engine not in {'BLENDER_WORKBENCH'}:
self.report({'ERROR'}, "Cannot generate materials for unknown %s render engine" % engine)
return {'CANCELLED'}
else:
@@ -922,7 +922,7 @@ class IMPORT_IMAGE_OT_to_plane(Operator, AddObjectHelper):
# Configure material
engine = context.scene.render.engine
- if engine in {'CYCLES', 'BLENDER_EEVEE', 'BLENDER_OPENGL'}:
+ if engine in {'CYCLES', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'}:
material = self.create_cycles_material(context, img_spec)
# Create and position plane object