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:
authorDalai Felinto <dfelinto@gmail.com>2011-12-03 00:36:13 +0400
committerDalai Felinto <dfelinto@gmail.com>2011-12-03 00:36:13 +0400
commit78495ddf326af8b2404b9fd652f2ab4f7836f2c2 (patch)
tree6f33d7828918b2f8b40d35f5767adbf55cd6ec4b /intern/cycles/app
parent1768a96774093a4b0d4674c683b2fb39564f0ad5 (diff)
CameraData Input Cycles Node
---------------------------- reviewed and approved by Brecht Important note: the camera Z is reverted compared to Blender render. Now it goes from zero (camera) to positive (in front of the camera)
Diffstat (limited to 'intern/cycles/app')
-rw-r--r--intern/cycles/app/cycles_xml.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index 00acae92955..8abc060af47 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -454,6 +454,9 @@ static void xml_read_shader_graph(const XMLReadState& state, Shader *shader, pug
xml_read_ustring(&attr->attribute, node, "attribute");
snode = attr;
}
+ else if(string_ieuals(node.name(), "camera")) {
+ snode = new CameraNode();
+ }
else if(string_iequals(node.name(), "fresnel")) {
snode = new FresnelNode();
}