From 6307e823ca2b885098ecade060cb0070a3488df6 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Wed, 8 Jun 2016 12:24:57 +0200 Subject: Cycles: Fix crash after recent zero scale instance optimization --- intern/cycles/bvh/bvh_build.cpp | 1 + 1 file changed, 1 insertion(+) 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()) -- cgit v1.2.3