Fix quick smoke getting view_render from the wrong place
This commit is contained in:
parent
1cb6cea71c
commit
f4beb64020
|
@ -365,7 +365,7 @@ class QuickSmoke(Operator):
|
|||
# Setup material
|
||||
|
||||
# Cycles
|
||||
if context.scene.render.use_shading_nodes:
|
||||
if context.scene.view_render.use_shading_nodes or context.view_render.use_shading_nodes:
|
||||
bpy.ops.object.material_slot_add()
|
||||
|
||||
mat = bpy.data.materials.new("Smoke Domain Material")
|
||||
|
|
Loading…
Reference in New Issue