forked from bartvdbraak/blender
Fix related to T47750: Particle disconnect operator: 'all hair' disabled would not work correctly after first op execution.
This is side issue, main one remains and does not look easy to fix, see report for details.
This commit is contained in:
parent
b20f12d835
commit
681becb359
@ -618,7 +618,6 @@ static int disconnect_hair_exec(bContext *C, wmOperator *op)
|
|||||||
{
|
{
|
||||||
Scene *scene= CTX_data_scene(C);
|
Scene *scene= CTX_data_scene(C);
|
||||||
Object *ob= ED_object_context(C);
|
Object *ob= ED_object_context(C);
|
||||||
PointerRNA ptr = CTX_data_pointer_get_type(C, "particle_system", &RNA_ParticleSystem);
|
|
||||||
ParticleSystem *psys= NULL;
|
ParticleSystem *psys= NULL;
|
||||||
const bool all = RNA_boolean_get(op->ptr, "all");
|
const bool all = RNA_boolean_get(op->ptr, "all");
|
||||||
|
|
||||||
@ -631,7 +630,7 @@ static int disconnect_hair_exec(bContext *C, wmOperator *op)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
psys = ptr.data;
|
psys = psys_get_current(ob);
|
||||||
disconnect_hair(scene, ob, psys);
|
disconnect_hair(scene, ob, psys);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user