[Bf-blender-cvs] [bd062f36c0a] blender2.8: WM: disable property update messages for fcurves
Campbell Barton
noreply at git.blender.org
Mon Dec 4 15:17:18 CET 2017
Commit: bd062f36c0a510ad5b8273e01ff810f4697c5833
Author: Campbell Barton
Date: Tue Dec 5 01:28:03 2017 +1100
Branches: blender2.8
https://developer.blender.org/rBbd062f36c0a510ad5b8273e01ff810f4697c5833
WM: disable property update messages for fcurves
===================================================================
M source/blender/makesrna/intern/rna_access.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list