diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-03 12:44:24 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-10-03 12:44:24 +0400 |
commit | b86f199a98fe77b634ea7f686d3d664d9791562b (patch) | |
tree | 1423f951893c2e543aa11b21ec2c975486913cc3 /intern/cycles/render/object.cpp | |
parent | 527d049c5c2abc73f367814be43059787dfc3121 (diff) |
Cycles: Fix for non-initialized variable
Diffstat (limited to 'intern/cycles/render/object.cpp')
-rw-r--r-- | intern/cycles/render/object.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/render/object.cpp b/intern/cycles/render/object.cpp index 1966fe4bb7f..634d0401aa9 100644 --- a/intern/cycles/render/object.cpp +++ b/intern/cycles/render/object.cpp @@ -349,6 +349,7 @@ void ObjectManager::device_update_transforms(Device *device, DeviceScene *dscene * TODO(sergey): Check on whether we can reshuffle update order in scene. */ if(ob->mesh->need_update) { + ob->mesh->has_volume = false; foreach(uint shader, ob->mesh->used_shaders) { if(scene->shaders[shader]->has_volume) { ob->mesh->has_volume = true; |