diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-08 13:24:57 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2016-06-08 13:25:35 +0300 |
commit | 6307e823ca2b885098ecade060cb0070a3488df6 (patch) | |
tree | 73f57269db27b383afcd3391f0b3a3286215237e /intern | |
parent | 438bdccff34b7cadfcc29dfd51f89b1b777ff2e7 (diff) |
Cycles: Fix crash after recent zero scale instance optimization
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp index d00de007b2d..3f687224eee 100644 --- a/intern/cycles/bvh/bvh_build.cpp +++ b/intern/cycles/bvh/bvh_build.cpp @@ -230,6 +230,7 @@ void BVHBuild::add_references(BVHRange& root) foreach(Object *ob, objects) { if(params.top_level) { if(!ob->is_traceable()) { + ++i; continue; } if(!ob->mesh->is_instanced()) |