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:
authorChris Blackbourn <chrisbblend@gmail.com>2022-09-22 04:16:34 +0300
committerChris Blackbourn <chrisbblend@gmail.com>2022-09-22 08:20:11 +0300
commitc50335b359e06751cba81e3d33a4ee0ae71daffb (patch)
treeeaa3d2e63d621c499d426a5b907975138d1f0994 /release
parent3185c3bc742e12080a5f482b4239b3ebe068ac64 (diff)
UV: add toggle to show the grid over the image
In UV editor, previously unable to see grid and image at same time. Maniphest Tasks: T78391 Differential Revision: https://developer.blender.org/D16038
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_image.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index b624d024843..89d025814f2 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -1531,6 +1531,14 @@ class IMAGE_PT_overlay_guides(Panel):
if overlay.show_grid_background:
layout.use_property_split = True
+
+ col = layout.column(align=False, heading="Grid Over Image")
+ col.use_property_decorate = False
+ row = col.row(align=True)
+ sub = row.row(align=True)
+ sub.prop(uvedit, "show_grid_over_image", text="")
+ sub.active = context.space_data.image is not None
+
col = layout.column(align=False, heading="Fixed Subdivisions")
col.use_property_decorate = False