Tag scene & objects for COW update after physics settings changed via RNA

This commit is contained in:
2018-05-17 15:48:23 +02:00
parent a2438373b3
commit 9edc64e255
2 changed files with 7 additions and 0 deletions

View File

@@ -72,6 +72,8 @@
#include "BIK_api.h"
#include "DEG_depsgraph.h"
#ifdef WITH_BULLET
# include "RBI_api.h"
#endif
@@ -3373,6 +3375,7 @@ int BKE_ptcache_object_reset(Scene *scene, Object *ob, int mode)
if (ob->type == OB_ARMATURE)
BIK_clear_cache(ob->pose);
DEG_id_tag_update(&ob->id, DEG_TAG_COPY_ON_WRITE);
return reset;
}

View File

@@ -80,6 +80,8 @@
#include "BLI_threads.h"
#include "DEG_depsgraph.h"
#ifdef WITH_OPENEXR
const EnumPropertyItem rna_enum_exr_codec_items[] = {
{R_IMF_EXR_CODEC_NONE, "NONE", 0, "None", ""},
@@ -1546,6 +1548,8 @@ static void rna_Physics_update(Main *UNUSED(bmain), Scene *UNUSED(scene), Pointe
BKE_ptcache_object_reset(scene, ob, PTCACHE_RESET_DEPSGRAPH);
}
FOREACH_SCENE_OBJECT_END;
DEG_id_tag_update(&scene->id, DEG_TAG_COPY_ON_WRITE);
}
static void rna_Scene_editmesh_select_mode_set(PointerRNA *ptr, const int *value)