Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-05-04 20:25:01 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-05-04 20:28:17 +0300
commit5d7ee444065021ab52d293c07638275611e826de (patch)
treeb9118ddfeaaf2bc9eb1f1d618c8b47ee8d2ad319
parent60772baebf6cf4bb54bc7d04a758c78d639062cf (diff)
Fix T95527: wrong motion blur with rigid bodies
This index is not meant for the point cache data array, it's already offset.
-rw-r--r--source/blender/blenkernel/intern/pointcache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index 34720bf7d6b..353f89068d8 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -833,8 +833,8 @@ static void ptcache_rigidbody_interpolate(int index,
memcpy(orn, data + 3, sizeof(float[4]));
}
else {
- PTCACHE_DATA_TO(data, BPHYS_DATA_LOCATION, index, pos);
- PTCACHE_DATA_TO(data, BPHYS_DATA_ROTATION, index, orn);
+ PTCACHE_DATA_TO(data, BPHYS_DATA_LOCATION, 0, pos);
+ PTCACHE_DATA_TO(data, BPHYS_DATA_ROTATION, 0, orn);
}
const float t = (cfra - cfra1) / (cfra2 - cfra1);