[Bf-blender-cvs] [fac51e039d0] greasepencil-object: Avoid error adding layer
Antonioya
noreply at git.blender.org
Fri Nov 23 17:48:04 CET 2018
Commit: fac51e039d0111c7ce8cd70e5777b433eb70dba5
Author: Antonioya
Date: Fri Nov 23 17:47:56 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBfac51e039d0111c7ce8cd70e5777b433eb70dba5
Avoid error adding layer
===================================================================
M source/blender/editors/gpencil/gpencil_data.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_data.c b/source/blender/editors/gpencil/gpencil_data.c
index b7568ce20dd..e9b65009781 100644
--- a/source/blender/editors/gpencil/gpencil_data.c
+++ b/source/blender/editors/gpencil/gpencil_data.c
@@ -258,6 +258,8 @@ static int gp_layer_add_exec(bContext *C, wmOperator *op)
}
/* notifiers */
+ bGPdata *gpd = *gpd_ptr;
+ DEG_id_tag_update(&gpd->id, OB_RECALC_OB | OB_RECALC_DATA | DEG_TAG_COPY_ON_WRITE);
WM_event_add_notifier(C, NC_GPENCIL | ND_DATA | NA_EDITED, NULL);
return OPERATOR_FINISHED;
More information about the Bf-blender-cvs
mailing list