Fix game-property use-after-free error

D1538 by @hal01
This commit is contained in:
Campbell Barton 2015-10-07 11:04:23 +11:00
parent f834cb0356
commit f456c8d8d3
Notes: blender-bot 2023-02-14 08:33:32 +01:00
Referenced by issue #46405, Point density textures. When using vertices as source, the viewport preview render does not update when adding a modifier or changing modifier settings.
1 changed files with 1 additions and 1 deletions

View File

@ -142,8 +142,8 @@ void BKE_bproperty_object_set(Object *ob, bProperty *propc)
bProperty *prop;
prop = BKE_bproperty_object_get(ob, propc->name);
if (prop) {
BKE_bproperty_free(prop);
BLI_remlink(&ob->prop, prop);
BKE_bproperty_free(prop);
}
BLI_addtail(&ob->prop, BKE_bproperty_copy(propc));
}