diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-12-04 17:28:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-12-04 17:31:12 +0300 |
commit | bd062f36c0a510ad5b8273e01ff810f4697c5833 (patch) | |
tree | 497175d6bec6f0b69589dc3c80a112fd0e368292 /source/blender/makesrna | |
parent | 3b3e6127520de14e2cf92f371281f66ebcec3756 (diff) |
WM: disable property update messages for fcurves
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_access.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |