Fix T62587: Particle instances Use Count not saved correctly
Reviewers: brecht Differential Revision: https://developer.blender.org/D4544
This commit is contained in:
parent
8e54ef69c6
commit
b29790a953
Notes:
blender-bot
2024-04-29 13:07:32 +02:00
Referenced by issue #62587, Particle system "Use Count" option fails when instancing objects inside a linked collection
|
@ -1422,9 +1422,10 @@ static void write_particlesettings(WriteData *wd, ParticleSettings *part)
|
|||
if (part->instance_collection) { /* can be NULL if lining fails or set to None */
|
||||
FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN(part->instance_collection, object)
|
||||
{
|
||||
if (object != dw->ob) {
|
||||
dw->index++;
|
||||
if (object == dw->ob) {
|
||||
break;
|
||||
}
|
||||
dw->index++;
|
||||
}
|
||||
FOREACH_COLLECTION_OBJECT_RECURSIVE_END;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue