Cycles: Start the particle index for object instances at 1 instead 0. The first parti...
authorLukas Toenne <lukas.toenne@googlemail.com>
Fri, 31 Aug 2012 19:39:04 +0000 (19:39 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Fri, 31 Aug 2012 19:39:04 +0000 (19:39 +0000)
intern/cycles/blender/blender_object.cpp

index 297ce5363ca9ccd7b4c93f6b7d8464f57df5a5a6..e7d974c3528b6355a44d3a2c92c10de188143344 100644 (file)
@@ -296,7 +296,7 @@ void BlenderSync::sync_objects(BL::SpaceView3D b_v3d, int motion)
        /* object loop */
        BL::Scene::objects_iterator b_ob;
        BL::Scene b_sce = b_scene;
-       int particle_offset = 0;
+       int particle_offset = 1;        /* first particle is dummy for regular, non-instanced objects */
 
        for(; b_sce; b_sce = b_sce.background_set()) {
                for(b_sce.objects.begin(b_ob); b_ob != b_sce.objects.end(); ++b_ob) {