Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'intern/cycles/app')
-rw-r--r--intern/cycles/app/cycles_xml.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index 998531a577b..8db96074dc7 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -406,7 +406,9 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug
/* Source */
xml_read_string(&osl->filepath, node, "src");
- osl->filepath = path_join(state.base, osl->filepath);
+ if(path_is_relative(osl->filepath)) {
+ osl->filepath = path_join(state.base, osl->filepath);
+ }
/* Generate inputs/outputs from node sockets
*
@@ -763,6 +765,9 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug
case SHADER_SOCKET_NORMAL:
xml_read_float3(&in->value, node, attr.name());
break;
+ case SHADER_SOCKET_STRING:
+ xml_read_ustring( &in->value_string, node, attr.name() );
+ break;
default:
break;
}