diff options
author | Antonioya <blendergit@gmail.com> | 2016-10-22 17:44:11 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2016-10-22 17:44:39 +0300 |
commit | 5765deecd42eedda780b88ed7448e4b1c185d0d8 (patch) | |
tree | 1a3f2123f4b8c94d6d30ab1ad314d7e400333d80 /release/scripts/startup | |
parent | 9d0ac94d52268ff34ce645035d4315d6018d02b9 (diff) |
GPencil: New option to lock strokes to axis
Now, the strokes can be locked to a plane set in the cursor location.
This option allow the artist to rotate the view and draw keeping the
strokes flat over the surface. This option is similar to surface option
but doesn't need a object.
The option is only valid for 3D view and strokes in CURSOR mode.
Diffstat (limited to 'release/scripts/startup')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_grease_pencil_common.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py index 84442f9b2d9..bc40932018d 100644 --- a/release/scripts/startup/bl_ui/properties_grease_pencil_common.py +++ b/release/scripts/startup/bl_ui/properties_grease_pencil_common.py @@ -52,6 +52,12 @@ def gpencil_stroke_placement_settings(context, layout): row.active = getattr(ts, propname) in {'SURFACE', 'STROKE'} row.prop(ts, "use_gpencil_stroke_endpoints") + if context.scene.tool_settings.gpencil_stroke_placement_view3d == 'CURSOR': + row = col.row(align=True) + row.label("Lock axis:") + row = col.row(align=True) + row.prop(ts.gpencil_sculpt, "lockaxis", expand=True) + def gpencil_active_brush_settings_simple(context, layout): brush = context.active_gpencil_brush |