[Bf-blender-cvs] [bc0f4896196] greasepencil-object: Set annotions drawing mode always on top
Antonio Vazquez
noreply at git.blender.org
Fri Jun 29 12:56:26 CEST 2018
Commit: bc0f489619648adf2b68b0ee876cf8c1c37646bb
Author: Antonio Vazquez
Date: Fri Jun 29 12:51:07 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rBbc0f489619648adf2b68b0ee876cf8c1c37646bb
Set annotions drawing mode always on top
The annotations must be visible on top of any other object in the scene.
===================================================================
M source/blender/editors/gpencil/annotate_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/annotate_paint.c b/source/blender/editors/gpencil/annotate_paint.c
index efe2c7978df..01068d738d1 100644
--- a/source/blender/editors/gpencil/annotate_paint.c
+++ b/source/blender/editors/gpencil/annotate_paint.c
@@ -1210,6 +1210,8 @@ static bool gp_session_initdata(bContext *C, tGPsdata *p)
if (*gpd_ptr == NULL) {
*gpd_ptr = BKE_gpencil_data_addnew(bmain, "Notes");
(*gpd_ptr)->flag |= GP_DATA_ANNOTATIONS;
+ /* annotations always in front of all objects */
+ (*gpd_ptr)->xray_mode = GP_XRAY_FRONT;
}
p->gpd = *gpd_ptr;
}
More information about the Bf-blender-cvs
mailing list