Update despsgraph when set/unset variables
This commit is contained in:
@@ -42,6 +42,7 @@
|
|||||||
#include "BLT_lang.h"
|
#include "BLT_lang.h"
|
||||||
|
|
||||||
#include "BKE_context.h"
|
#include "BKE_context.h"
|
||||||
|
#include "BKE_depsgraph.h"
|
||||||
#include "BKE_idprop.h"
|
#include "BKE_idprop.h"
|
||||||
#include "BKE_layer.h"
|
#include "BKE_layer.h"
|
||||||
#include "BKE_screen.h"
|
#include "BKE_screen.h"
|
||||||
@@ -384,6 +385,9 @@ static int use_property_button_exec(bContext *C, wmOperator *UNUSED(op))
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TODO(sergey): Use proper flag for tagging here. */
|
||||||
|
DAG_id_tag_update((ID *)CTX_data_scene(C), 0);
|
||||||
|
|
||||||
return OPERATOR_FINISHED;
|
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);
|
IDProperty *prop_to_remove = IDP_GetPropertyFromGroup(props, identifier);
|
||||||
IDP_FreeFromGroup(props, prop_to_remove);
|
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;
|
return OPERATOR_FINISHED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user