Cycles: Minot cleanup, save some cpu tics per curve segment export
authorSergey Sharybin <sergey.vfx@gmail.com>
Fri, 16 Jan 2015 18:43:57 +0000 (23:43 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Fri, 16 Jan 2015 19:15:47 +0000 (00:15 +0500)
intern/cycles/blender/blender_curves.cpp

index 9d51aadec538ad4f027ad22f9f3ae66ab71c4b76..332f1633a30db9fb15e689a082a42cf20d34f5c2 100644 (file)
@@ -196,9 +196,9 @@ bool ObtainCacheParticleData(Mesh *mesh, BL::Mesh *b_mesh, BL::Object *b_ob, Par
                                                CData->curvekey_co.push_back(cKey);
                                                CData->curvekey_time.push_back(curve_length);
                                                pcKey = cKey;
-                                               keyno++;
                                                keynum++;
                                        }
+                                       keyno += keynum;
 
                                        CData->curve_keynum.push_back(keynum);
                                        CData->curve_length.push_back(curve_length);