grease pencil depth option 'Stroke Endpoints' works well when painting onto mesh...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 2 Jan 2010 23:56:14 +0000 (23:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 2 Jan 2010 23:56:14 +0000 (23:56 +0000)
source/blender/editors/gpencil/gpencil_buttons.c

index e93788bc495c0822aa2d19cdd363ecb92f4cc197..a63573b53814ec573473efee0a056e40424d2866 100644 (file)
@@ -268,7 +268,7 @@ static void draw_gpencil_panel (bContext *C, uiLayout *layout, bGPdata *gpd, Poi
                uiItemEnumR_string(row, NULL, 0, &gpd_ptr, "draw_mode", "STROKE");
 
                row= uiLayoutRow(col, 0);
-               uiLayoutSetActive(row, (gpd->flag & GP_DATA_DEPTH_STROKE) ? 1:0);
+               uiLayoutSetActive(row, (gpd->flag & (GP_DATA_DEPTH_STROKE|GP_DATA_DEPTH_VIEW)) ? 1:0);
                uiItemR(row, NULL, 0, &gpd_ptr, "use_stroke_endpoints", 0);
 }