From bd062f36c0a510ad5b8273e01ff810f4697c5833 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 5 Dec 2017 01:28:03 +1100 Subject: [PATCH] WM: disable property update messages for fcurves --- source/blender/makesrna/intern/rna_access.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/blender/makesrna/intern/rna_access.c b/source/blender/makesrna/intern/rna_access.c index 880b1ef9c08..19687be77e4 100644 --- a/source/blender/makesrna/intern/rna_access.c +++ b/source/blender/makesrna/intern/rna_access.c @@ -1981,7 +1981,9 @@ static void rna_property_update(bContext *C, Main *bmain, Scene *scene, PointerR if (prop->noteflag) WM_main_add_notifier(prop->noteflag, ptr->id.data); #else - { + /* if C is NULL, we're updating from animation. + * avoid slow-down from f-curves by not publishing (for now). */ + if (C != NULL) { struct wmMsgBus *mbus = CTX_wm_message_bus(C); /* we could add NULL check, for now don't */ WM_msg_publish_rna(mbus, ptr, prop);