forked from bartvdbraak/blender
Fix 'quick smoke' not rendering anything (texture coordinates was left unset)
Not quite sure why default did not work here, might need further investigation.
This commit is contained in:
parent
32a5313b41
commit
da1801969b
@ -367,6 +367,7 @@ class QuickSmoke(Operator):
|
||||
|
||||
tex_slot = mat.texture_slots.add()
|
||||
tex_slot.texture = tex
|
||||
tex_slot.texture_coords = 'ORCO'
|
||||
tex_slot.use_map_color_emission = False
|
||||
tex_slot.use_map_density = True
|
||||
tex_slot.use_map_color_reflection = True
|
||||
@ -381,6 +382,7 @@ class QuickSmoke(Operator):
|
||||
|
||||
tex_slot = mat.texture_slots.add()
|
||||
tex_slot.texture = tex
|
||||
tex_slot.texture_coords = 'ORCO'
|
||||
|
||||
# add color ramp for flame color
|
||||
ramp = tex.color_ramp
|
||||
|
Loading…
Reference in New Issue
Block a user