[Bf-blender-cvs] [da18019] master: Fix 'quick smoke' not rendering anything (texture coordinates was left unset)
Bastien Montagne
noreply at git.blender.org
Thu Aug 14 21:21:53 CEST 2014
Commit: da1801969b3e32b68c5b431b9dce4961a55f8ff4
Author: Bastien Montagne
Date: Thu Aug 14 21:18:12 2014 +0200
Branches: master
https://developer.blender.org/rBda1801969b3e32b68c5b431b9dce4961a55f8ff4
Fix 'quick smoke' not rendering anything (texture coordinates was left unset)
Not quite sure why default did not work here, might need further investigation.
===================================================================
M release/scripts/startup/bl_operators/object_quick_effects.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/object_quick_effects.py b/release/scripts/startup/bl_operators/object_quick_effects.py
index 556d34b..80f72b0 100644
--- a/release/scripts/startup/bl_operators/object_quick_effects.py
+++ b/release/scripts/startup/bl_operators/object_quick_effects.py
@@ -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
More information about the Bf-blender-cvs
mailing list