Fix T62587: Particle instances Use Count not saved correctly
Reviewers: brecht Differential Revision: https://developer.blender.org/D4544
This commit is contained in:
@@ -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 */
|
if (part->instance_collection) { /* can be NULL if lining fails or set to None */
|
||||||
FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN(part->instance_collection, object)
|
FOREACH_COLLECTION_OBJECT_RECURSIVE_BEGIN(part->instance_collection, object)
|
||||||
{
|
{
|
||||||
if (object != dw->ob) {
|
if (object == dw->ob) {
|
||||||
dw->index++;
|
break;
|
||||||
}
|
}
|
||||||
|
dw->index++;
|
||||||
}
|
}
|
||||||
FOREACH_COLLECTION_OBJECT_RECURSIVE_END;
|
FOREACH_COLLECTION_OBJECT_RECURSIVE_END;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user