diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 8c4784e4f63cd3a95723189926a752f12c369c7e..5a7c97edb69551e8a4f32b2dea81b86caba4a628 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -978,7 +978,7 @@ class SCENE_PT_Settings(ObjectButtonsPanel,bpy.types.Panel): class SCENE_PT_Settings_Update(ObjectButtonsPanel, bpy.types.Panel): bl_label = "Update" bl_parent_id = "SCENE_PT_Settings" - COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} def draw(self, context): layout = self.layout @@ -1005,7 +1005,7 @@ class SCENE_PT_Settings_Update(ObjectButtonsPanel, bpy.types.Panel): class SCENE_PT_Settings_Folders(ObjectButtonsPanel, bpy.types.Panel): bl_label = "Folders" bl_parent_id = "SCENE_PT_Settings" - COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_OPENGL'} + COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} def draw(self, context): layout = self.layout diff --git a/io_import_images_as_planes.py b/io_import_images_as_planes.py index 8030e63b54c923c970b0613f8f896efd261ccbe6..5cc15311fff57749727394bed66e9a03b1664475 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