diff options
author | Antonioya <blendergit@gmail.com> | 2019-07-07 10:38:52 +0300 |
---|---|---|
committer | Antonioya <blendergit@gmail.com> | 2019-07-07 10:38:52 +0300 |
commit | 0735c12ca894f7930c24cf8ac484da58d9941354 (patch) | |
tree | 662d252a86e1e5f6fc52ae07efed4f523f0f6099 | |
parent | cd6b49f995fdca5240a9b97fa99b4dd669a047ea (diff) |
GPencil: Hide reference points when use Parallel or Grid guide
These options are not used by these modes. Detected while writing the manual.
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index b58df73805b..f7ce0186e4b 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -6036,15 +6036,16 @@ class VIEW3D_PT_gpencil_guide(Panel): else: col.prop(settings, "spacing") - col.label(text="Reference Point") - row = col.row(align=True) - row.prop(settings, "reference_point", expand=True) - if settings.reference_point == 'CUSTOM': - col.prop(settings, "location", text="Custom Location") - elif settings.reference_point == 'OBJECT': - col.prop(settings, "reference_object", text="Object Location") - if not settings.reference_object: - col.label(text="No object selected, using cursor") + if settings.type in ('CIRCULAR', 'RADIAL'): + col.label(text="Reference Point") + row = col.row(align=True) + row.prop(settings, "reference_point", expand=True) + if settings.reference_point == 'CUSTOM': + col.prop(settings, "location", text="Custom Location") + elif settings.reference_point == 'OBJECT': + col.prop(settings, "reference_object", text="Object Location") + if not settings.reference_object: + col.label(text="No object selected, using cursor") class VIEW3D_PT_overlay_gpencil_options(Panel): |