Cycles: Fix for non-initialized variable

This commit is contained in:
Sergey Sharybin 2014-10-03 10:44:24 +02:00
parent 527d049c5c
commit b86f199a98
1 changed files with 1 additions and 0 deletions

View File

@ -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;