[Bf-blender-cvs] [8bd55cf3d56] master: Ammend to rBea5326df86cb.
Bastien Montagne
noreply at git.blender.org
Fri Jan 25 19:54:54 CET 2019
Commit: 8bd55cf3d566d5fc51517a0a100fc2bcf14c1f46
Author: Bastien Montagne
Date: Fri Jan 25 19:51:38 2019 +0100
Branches: master
https://developer.blender.org/rB8bd55cf3d566d5fc51517a0a100fc2bcf14c1f46
Ammend to rBea5326df86cb.
As suggested by @sergey, better use RECALC flag dedicated to pointcache.
===================================================================
M source/blender/editors/physics/physics_pointcache.c
===================================================================
diff --git a/source/blender/editors/physics/physics_pointcache.c b/source/blender/editors/physics/physics_pointcache.c
index e36f2f912bd..bf94b510303 100644
--- a/source/blender/editors/physics/physics_pointcache.c
+++ b/source/blender/editors/physics/physics_pointcache.c
@@ -387,7 +387,7 @@ static int ptcache_add_new_exec(bContext *C, wmOperator *UNUSED(op))
cache_new->step = pid.default_step;
*(pid.cache_ptr) = cache_new;
- DEG_id_tag_update(&ob->id, ID_RECALC_COPY_ON_WRITE);
+ DEG_id_tag_update(&ob->id, ID_RECALC_POINT_CACHE);
WM_event_add_notifier(C, NC_SCENE|ND_FRAME, scene);
WM_event_add_notifier(C, NC_OBJECT|ND_POINTCACHE, ob);
}
More information about the Bf-blender-cvs
mailing list