diff options
Diffstat (limited to 'archimesh/achm_stairs_maker.py')
-rw-r--r-- | archimesh/achm_stairs_maker.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/archimesh/achm_stairs_maker.py b/archimesh/achm_stairs_maker.py index e293dad1..d5b1f82e 100644 --- a/archimesh/achm_stairs_maker.py +++ b/archimesh/achm_stairs_maker.py @@ -178,6 +178,8 @@ class AchmStairs(Operator): row.prop(self, 'side_gap') box = layout.box() + if not context.scene.render.engine == 'CYCLES': + box.enabled = False box.prop(self, 'crt_mat') else: row = layout.row() @@ -238,7 +240,7 @@ def create_stairs_mesh(self): # ------------------------ # Create materials # ------------------------ - if self.crt_mat: + if self.crt_mat and bpy.context.scene.render.engine == 'CYCLES': # Stairs material mat = create_diffuse_material("Stairs_material", False, 0.8, 0.8, 0.8) set_material(mystairs, mat) |