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:
authorKévin Dietrich <kevin.dietrich@mailoo.org>2021-08-13 14:31:21 +0300
committerKévin Dietrich <kevin.dietrich@mailoo.org>2021-08-17 22:41:18 +0300
commit23132fcdc136d1238d9980c2a9bf6d058e846cc7 (patch)
treecfcc3668e897626a47fb46b8dee38f120aeece86
parent60d6333b80472ca9eb2e1ab659da0fa2572d0a8b (diff)
Fix T77307: Particle Info Node Does Not Consider Time Remapping
`frame_current_final()` should be used to access the Scene time after remapping, which also matches how the particles system handles time. Reviewed By: brecht Maniphest Tasks: T77307 Differential Revision: https://developer.blender.org/D12239
-rw-r--r--intern/cycles/blender/blender_particles.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/blender/blender_particles.cpp b/intern/cycles/blender/blender_particles.cpp
index ae43dae4dc1..206ee24a093 100644
--- a/intern/cycles/blender/blender_particles.cpp
+++ b/intern/cycles/blender/blender_particles.cpp
@@ -71,7 +71,7 @@ bool BlenderSync::sync_dupli_particle(BL::Object &b_ob,
Particle pa;
pa.index = persistent_id[0];
- pa.age = b_scene.frame_current() - b_pa.birth_time();
+ pa.age = b_scene.frame_current_final() - b_pa.birth_time();
pa.lifetime = b_pa.lifetime();
pa.location = get_float3(b_pa.location());
pa.rotation = get_float4(b_pa.rotation());