Fix T87165: Join geometry node doesn't copy instance IDs
This makes motion blur work incorrectly. With a similar fix to rBf2d70c02f88cc00, just copy over the instance IDs in this case.
This commit is contained in:
parent
28828e0041
commit
7e678c3096
Notes:
blender-bot
2023-07-10 10:12:37 +02:00
Referenced by issue #87165, EEVEE Geometry nodes Point Separate node causes motion blur glitches
|
@ -248,8 +248,9 @@ static void join_components(Span<const InstancesComponent *> src_components, Geo
|
|||
const int size = component->instances_amount();
|
||||
Span<InstancedData> instanced_data = component->instanced_data();
|
||||
Span<float4x4> transforms = component->transforms();
|
||||
Span<int> ids = component->ids();
|
||||
for (const int i : IndexRange(size)) {
|
||||
dst_component.add_instance(instanced_data[i], transforms[i]);
|
||||
dst_component.add_instance(instanced_data[i], transforms[i], ids[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue