Fix T41295: Rigid bodyfield weights not working.??
Looks like `rna_EffectorWeight_update()` was not really working, now uses same kind of code as `rna_Physics_update()` from rna_scene.c.
This commit is contained in:
parent
7284e6aedd
commit
3cd2c6145a
Notes:
blender-bot
2023-02-14 10:16:27 +01:00
Referenced by commit 29e15926b1
, Fix for rB3cd2c6145ae1.
Referenced by issue #41295, Rigid bodyfield weights not working.??
|
@ -598,9 +598,11 @@ static char *rna_FieldSettings_path(PointerRNA *ptr)
|
|||
|
||||
static void rna_EffectorWeight_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
{
|
||||
DAG_id_tag_update((ID *)ptr->id.data, OB_RECALC_DATA | PSYS_RECALC_RESET);
|
||||
Scene *scene = (Scene *)ptr->id.data;
|
||||
Base *base;
|
||||
|
||||
WM_main_add_notifier(NC_OBJECT | ND_DRAW, NULL);
|
||||
for (base = scene->base.first; base; base = base->next)
|
||||
BKE_ptcache_object_reset(scene, base->object, PTCACHE_RESET_DEPSGRAPH);
|
||||
}
|
||||
|
||||
static void rna_EffectorWeight_dependency_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
|
|
Loading…
Reference in New Issue