[Bf-blender-cvs] [7ce36dc0792] asset-greasepencil: GPencil: Remove unedeed notifiers
Antonio Vazquez
noreply at git.blender.org
Wed Jul 7 18:43:01 CEST 2021
Commit: 7ce36dc079246213495665262b164df78ca3b3e7
Author: Antonio Vazquez
Date: Wed Jul 7 18:42:26 2021 +0200
Branches: asset-greasepencil
https://developer.blender.org/rB7ce36dc079246213495665262b164df78ca3b3e7
GPencil: Remove unedeed notifiers
===================================================================
M source/blender/editors/gpencil/gpencil_asset.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_asset.c b/source/blender/editors/gpencil/gpencil_asset.c
index 95580dc6ece..08282838e60 100644
--- a/source/blender/editors/gpencil/gpencil_asset.c
+++ b/source/blender/editors/gpencil/gpencil_asset.c
@@ -123,14 +123,9 @@ static int gpencil_asset_create_exec(bContext *C, wmOperator *op)
if (ED_asset_mark_id(C, &gpd->id)) {
}
- DEG_relations_tag_update(bmain);
WM_main_add_notifier(NC_ID | NA_EDITED, NULL);
WM_main_add_notifier(NC_ASSET | NA_ADDED, NULL);
- WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, NULL);
- WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
- WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_SELECTED, NULL);
-
return OPERATOR_FINISHED;
}
More information about the Bf-blender-cvs
mailing list