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:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-04-30 13:46:09 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-04-30 13:46:09 +0300
commit16794f908fe3f1df46096df100e007049991d89e (patch)
treeae59a6216e66d8a7972f129bba6eeb98c01f3c4a /intern/cycles/app
parent290997538590d54387602a37879ad4cffbc311da (diff)
Cycles: Fix possible uninitialized XML read state which might cause crashes
Diffstat (limited to 'intern/cycles/app')
-rw-r--r--intern/cycles/app/cycles_xml.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/cycles/app/cycles_xml.cpp b/intern/cycles/app/cycles_xml.cpp
index 2b99dfe6feb..382574696c4 100644
--- a/intern/cycles/app/cycles_xml.cpp
+++ b/intern/cycles/app/cycles_xml.cpp
@@ -55,6 +55,16 @@ struct XMLReadState {
string base; /* base path to current file*/
float dicing_rate; /* current dicing rate */
Mesh::DisplacementMethod displacement_method;
+
+ XMLReadState()
+ : scene(NULL),
+ smooth(false),
+ shader(0),
+ dicing_rate(0.0f),
+ displacement_method(Mesh::DISPLACE_BUMP)
+ {
+ tfm = transform_identity();
+ }
};
/* Attribute Reading */