Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Jolly <mistajolly@gmail.com>2019-09-06 16:07:26 +0300
committerCharlie Jolly <mistajolly@gmail.com>2019-09-06 16:07:26 +0300
commita94bf0e1349b4ee39e308a565fe26a4bd7cb7543 (patch)
treea96bfdc616edba9546ce6dc613228b4d4ea4ec07 /release
parent4c20c53b8980535fd0d62a5285a1e27bbe6e829d (diff)
GPencil: Guides: Refactor and add new ISO option
+ Simplify code, move into own function and run once rather than on every point + Improved snapping when a stroke is between increments + Added ISO grid option for lines specified by Angle under guide settings + Radial snapping mode uses Angle as an offset Differential Revision: https://developer.blender.org/D5668
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 89de137df76..a86d09c55e6 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6077,7 +6077,7 @@ class VIEW3D_PT_gpencil_guide(Panel):
col.active = settings.use_guide
col.prop(settings, "type", expand=True)
- if settings.type == 'PARALLEL':
+ if settings.type in {'ISO', 'PARALLEL', 'RADIAL'}:
col.prop(settings, "angle")
row = col.row(align=True)
@@ -6089,7 +6089,7 @@ class VIEW3D_PT_gpencil_guide(Panel):
else:
col.prop(settings, "spacing")
- if settings.type in {'CIRCULAR', 'RADIAL'}:
+ if settings.type in {'CIRCULAR', 'RADIAL'} or settings.use_snapping:
col.label(text="Reference Point")
row = col.row(align=True)
row.prop(settings, "reference_point", expand=True)