[Bf-blender-cvs] [3cd2c61] master: Fix T41295: Rigid bodyfield weights not working.??
Bastien Montagne
noreply at git.blender.org
Sun Aug 10 15:40:22 CEST 2014
Commit: 3cd2c6145ae12956757141a1ea1f58f5eddf0db1
Author: Bastien Montagne
Date: Sun Aug 10 15:24:33 2014 +0200
Branches: master
https://developer.blender.org/rB3cd2c6145ae12956757141a1ea1f58f5eddf0db1
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.
===================================================================
M source/blender/makesrna/intern/rna_object_force.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index ea25530..9256720 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -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)
More information about the Bf-blender-cvs
mailing list