Update despsgraph when set/unset variables

This commit is contained in:
Dalai Felinto 2017-04-13 15:38:35 +02:00
parent 368b3c145b
commit 9b53bab0b7

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