Fix T48298: Cycles World environment Texture node, movie doesn't update frame
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 29 Apr 2016 08:54:40 +0000 (10:54 +0200)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 29 Apr 2016 08:54:40 +0000 (10:54 +0200)
intern/cycles/blender/blender_shader.cpp

index 4f7ca301fb71f2846309b054cad8189aa45e4f4b..ba806e2bd24ed11f4b996e50330faf5f4a89bc54 100644 (file)
@@ -732,10 +732,10 @@ static ShaderNode *add_node(Scene *scene,
                                env->filename = image_user_file_path(b_image_user,
                                                                     b_image,
                                                                     b_scene.frame_current());
-                               env->animated = b_env_node.image_user().use_auto_refresh();
                                env->builtin_data = NULL;
                        }
 
+                       env->animated = b_env_node.image_user().use_auto_refresh();
                        env->use_alpha = b_image.use_alpha();
 
                        /* TODO(sergey): Does not work properly when we change builtin type. */