Fix Cycles debug build assert on some platforms, tighten checks to avoid this in...
[blender.git] / intern / cycles / blender / blender_shader.cpp
index 0b61cbb0f627a4c0724ee52d7c54a1e96b76e6af..78a28b7feedccbbaf726c14540b372be9ad81561 100644 (file)
@@ -619,7 +619,7 @@ static ShaderNode *add_node(Scene *scene,
                        /* TODO(sergey): Does not work properly when we change builtin type. */
                        if(b_image.is_updated()) {
                                scene->image_manager->tag_reload_image(
                        /* TODO(sergey): Does not work properly when we change builtin type. */
                        if(b_image.is_updated()) {
                                scene->image_manager->tag_reload_image(
-                                       image->filename,
+                                       image->filename.string(),
                                        image->builtin_data,
                                        get_image_interpolation(b_image_node),
                                        get_image_extension(b_image_node));
                                        image->builtin_data,
                                        get_image_interpolation(b_image_node),
                                        get_image_extension(b_image_node));
@@ -665,7 +665,7 @@ static ShaderNode *add_node(Scene *scene,
                        /* TODO(sergey): Does not work properly when we change builtin type. */
                        if(b_image.is_updated()) {
                                scene->image_manager->tag_reload_image(
                        /* TODO(sergey): Does not work properly when we change builtin type. */
                        if(b_image.is_updated()) {
                                scene->image_manager->tag_reload_image(
-                                       env->filename,
+                                       env->filename.string(),
                                        env->builtin_data,
                                        get_image_interpolation(b_env_node),
                                        EXTENSION_REPEAT);
                                        env->builtin_data,
                                        get_image_interpolation(b_env_node),
                                        EXTENSION_REPEAT);