[Bf-blender-cvs] [9b53bab0b7e] blender2.8: Update despsgraph when set/unset variables

Dalai Felinto noreply at git.blender.org
Thu Apr 13 15:38:42 CEST 2017


Commit: 9b53bab0b7e29931b42c1969c401fc33a268ec12
Author: Dalai Felinto
Date:   Thu Apr 13 15:38:35 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB9b53bab0b7e29931b42c1969c401fc33a268ec12

Update despsgraph when set/unset variables

===================================================================

M	source/blender/editors/interface/interface_ops.c

===================================================================

diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c
index de226e74c65..c130064ca12 100644
--- a/source/blender/editors/interface/interface_ops.c
+++ b/source/blender/editors/interface/interface_ops.c
@@ -42,6 +42,7 @@
 #include "BLT_lang.h"
 
 #include "BKE_context.h"
+#include "BKE_depsgraph.h"
 #include "BKE_idprop.h"
 #include "BKE_layer.h"
 #include "BKE_screen.h"
@@ -384,6 +385,9 @@ static int use_property_button_exec(bContext *C, wmOperator *UNUSED(op))
 			break;
 	}
 
+	/* TODO(sergey): Use proper flag for tagging here. */
+	DAG_id_tag_update((ID *)CTX_data_scene(C), 0);
+
 	return OPERATOR_FINISHED;
 }
 
@@ -416,6 +420,9 @@ static int unuse_property_button_exec(bContext *C, wmOperator *UNUSED(op))
 	IDProperty *prop_to_remove = IDP_GetPropertyFromGroup(props, identifier);
 	IDP_FreeFromGroup(props, prop_to_remove);
 
+	/* TODO(sergey): Use proper flag for tagging here. */
+	DAG_id_tag_update((ID *)CTX_data_scene(C), 0);
+
 	return OPERATOR_FINISHED;
 }




More information about the Bf-blender-cvs mailing list