[Bf-blender-cvs] [edd78fb] master: Fix cycles crash after recent use alpha commit.

Brecht Van Lommel noreply at git.blender.org
Wed May 7 19:01:04 CEST 2014


Commit: edd78fb3085ef960b59925269ef967daf0256d10
Author: Brecht Van Lommel
Date:   Wed May 7 19:00:15 2014 +0200
https://developer.blender.org/rBedd78fb3085ef960b59925269ef967daf0256d10

Fix cycles crash after recent use alpha commit.

===================================================================

M	intern/cycles/blender/blender_shader.cpp

===================================================================

diff --git a/intern/cycles/blender/blender_shader.cpp b/intern/cycles/blender/blender_shader.cpp
index 7f384d9..ddbb40d 100644
--- a/intern/cycles/blender/blender_shader.cpp
+++ b/intern/cycles/blender/blender_shader.cpp
@@ -546,9 +546,9 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen
 			}
 
 			image->animated = b_image_node.image_user().use_auto_refresh();
+			image->use_alpha = b_image.use_alpha();
 		}
 		image->color_space = ImageTextureNode::color_space_enum[(int)b_image_node.color_space()];
-		image->use_alpha = b_image.use_alpha();
 		image->projection = ImageTextureNode::projection_enum[(int)b_image_node.projection()];
 		image->interpolation = (InterpolationType)b_image_node.interpolation();
 		image->projection_blend = b_image_node.projection_blend();
@@ -575,9 +575,10 @@ static ShaderNode *add_node(Scene *scene, BL::BlendData b_data, BL::Scene b_scen
 				env->animated = b_env_node.image_user().use_auto_refresh();
 				env->builtin_data = NULL;
 			}
+
+			env->use_alpha = b_image.use_alpha();
 		}
 		env->color_space = EnvironmentTextureNode::color_space_enum[(int)b_env_node.color_space()];
-		env->use_alpha = b_image.use_alpha();
 		env->projection = EnvironmentTextureNode::projection_enum[(int)b_env_node.projection()];
 		get_tex_mapping(&env->tex_mapping, b_env_node.texture_mapping());
 		node = env;




More information about the Bf-blender-cvs mailing list