Commit: 05bbaa0dcab6cf89851511da906d1438684f6b7c
Author: Kévin Dietrich
Date:   Tue Oct 6 04:27:20 2020 +0200
Branches: cycles_procedural_api
https://developer.blender.org/rB05bbaa0dcab6cf89851511da906d1438684f6b7c

fix for missing motion steps

===================================================================

M       intern/cycles/blender/blender_object.cpp

===================================================================

diff --git a/intern/cycles/blender/blender_object.cpp 
b/intern/cycles/blender/blender_object.cpp
index 03997e3386f..d5ded6a5f33 100644
--- a/intern/cycles/blender/blender_object.cpp
+++ b/intern/cycles/blender/blender_object.cpp
@@ -288,12 +288,13 @@ Object *BlenderSync::sync_object(BL::Depsgraph 
&b_depsgraph,
       if (motion_steps) {
         motion[motion_steps / 2] = tfm;
 
+        /* update motion socket before trying to access object->motion_time */
+        object->set_motion(motion);
+
         for (size_t step = 0; step < motion_steps; step++) {
           motion_times.insert(object->motion_time(step));
         }
       }
-
-      object->set_motion(motion);
     }
 
     /* dupli texture coordinates and random_id */

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to