Merge branch 'blender-v4.0-release'

This commit is contained in:
Pratik Borhade
2023-10-10 18:54:30 +05:30

View File

@@ -1135,9 +1135,11 @@ static int forcefield_toggle_exec(bContext *C, wmOperator * /*op*/)
if (ob->pd == nullptr) {
ob->pd = BKE_partdeflect_new(PFIELD_FORCE);
ob->empty_drawtype = OB_PLAINAXES;
}
else if (ob->pd->forcefield == 0) {
ob->pd->forcefield = PFIELD_FORCE;
ob->empty_drawtype = OB_PLAINAXES;
}
else {
ob->pd->forcefield = 0;