Page MenuHome
Paste P2625

T93501_snippet
ActivePublic

Authored by Philipp Oeser (lichtwerk) on Nov 30 2021, 11:56 AM.
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index 3fd19dd70cf..ea391a9c490 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -6104,7 +6104,10 @@ class VIEW3D_PT_overlay_guides(Panel):
sub.prop(overlay, "show_stats", text="Statistics")
sub = split.column()
- sub.prop(overlay, "show_cursor", text="3D Cursor")
+ # match is_cursor_visible() somewhat
+ use_show_cursor = context.mode not in {'PAINT_WEIGHT', 'PAINT_TEXTURE', 'PAINT_VERTEX', 'WEIGHT_GPENCIL'}
+ if use_show_cursor:
+ sub.prop(overlay, "show_cursor", text="3D Cursor")
sub.prop(overlay, "show_annotation", text="Annotations")
if shading.type == 'MATERIAL':