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:
Bastien Montagne
2014-08-14 21:18:12 +02:00
parent 32a5313b41
commit da1801969b

View File

@@ -367,6 +367,7 @@ class QuickSmoke(Operator):
tex_slot = mat.texture_slots.add() tex_slot = mat.texture_slots.add()
tex_slot.texture = tex tex_slot.texture = tex
tex_slot.texture_coords = 'ORCO'
tex_slot.use_map_color_emission = False tex_slot.use_map_color_emission = False
tex_slot.use_map_density = True tex_slot.use_map_density = True
tex_slot.use_map_color_reflection = True tex_slot.use_map_color_reflection = True
@@ -381,6 +382,7 @@ class QuickSmoke(Operator):
tex_slot = mat.texture_slots.add() tex_slot = mat.texture_slots.add()
tex_slot.texture = tex tex_slot.texture = tex
tex_slot.texture_coords = 'ORCO'
# add color ramp for flame color # add color ramp for flame color
ramp = tex.color_ramp ramp = tex.color_ramp