WM: disable property update messages for fcurves

This commit is contained in:
Campbell Barton 2017-12-05 01:28:03 +11:00
parent 3b3e612752
commit bd062f36c0
1 changed files with 3 additions and 1 deletions

View File

@ -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);