diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-01 15:55:21 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-01 15:55:21 +0400 |
commit | 94ec34fb044a4f66da3cda7af9e98930e9cfc999 (patch) | |
tree | 4d56babd80c7e64258a26bce1346484830a78c38 /source/blender/makesrna/intern/rna_gpencil.c | |
parent | 3556da255a53de6dc1ab4bf3859b5780390063a2 (diff) |
xray option for grease pencil (on by default), sometimes its nicer not to have lines draw through the mesh.
Diffstat (limited to 'source/blender/makesrna/intern/rna_gpencil.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_gpencil.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_gpencil.c b/source/blender/makesrna/intern/rna_gpencil.c index c9cbe9c9e38..d6f13444247 100644 --- a/source/blender/makesrna/intern/rna_gpencil.c +++ b/source/blender/makesrna/intern/rna_gpencil.c @@ -235,6 +235,12 @@ static void rna_def_gpencil_layer(BlenderRNA *brna) RNA_def_property_boolean_sdna(prop, NULL, "flag", GP_LAYER_DRAWDEBUG); RNA_def_property_ui_text(prop, "Show Points", "Draw the points which make up the strokes (for debugging purposes)"); RNA_def_property_update(prop, NC_SCREEN|ND_GPENCIL, NULL); + + /* X-Ray */ + prop= RNA_def_property(srna, "show_x_ray", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", GP_LAYER_NO_XRAY); + RNA_def_property_ui_text(prop, "X Ray", ""); + RNA_def_property_update(prop, NC_SCREEN|ND_GPENCIL, NULL); } static void rna_def_gpencil_data(BlenderRNA *brna) |