From bc51250c1fbfe8309e42a4a0b6257e93939346a7 Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 27 Aug 2019 08:33:54 +0200 Subject: UV Editor: Remove Unimplemented Show Edges Option Show Edges option in the UV editor does not do anything. Only RNA/DNA code could be found, so it is save to be removed. Differential Revision: https://developer.blender.org/D5446 --- release/scripts/startup/bl_ui/space_image.py | 1 - source/blender/makesdna/DNA_space_types.h | 2 -- source/blender/makesrna/intern/rna_space.c | 5 ----- 3 files changed, 8 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index f24971347e1..5e05c49b567 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -961,7 +961,6 @@ class IMAGE_PT_view_display_uv_edit_overlays(Panel): col = layout.column() col.prop(uvedit, "edge_display_type", text="Display As") - col.prop(uvedit, "show_edges", text="Edges") col.prop(uvedit, "show_faces", text="Faces") col = layout.column() diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h index 1691d873f9b..1b4e4dc23ee 100644 --- a/source/blender/makesdna/DNA_space_types.h +++ b/source/blender/makesdna/DNA_space_types.h @@ -1118,8 +1118,6 @@ typedef enum eSpaceImage_Flag { SI_SHOW_R = (1 << 27), SI_SHOW_G = (1 << 28), SI_SHOW_B = (1 << 29), - - SI_NO_DRAWEDGES = (1 << 30), } eSpaceImage_Flag; /* SpaceImage.other_uv_filter */ diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 8c855c9e870..b0226b09b88 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2711,11 +2711,6 @@ static void rna_def_space_image_uv(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Display Faces", "Display faces over the image"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_IMAGE, NULL); - prop = RNA_def_property(srna, "show_edges", PROP_BOOLEAN, PROP_NONE); - RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", SI_NO_DRAWEDGES); - RNA_def_property_ui_text(prop, "Display Edges", "Display edges in vertex select mode"); - RNA_def_property_update(prop, NC_SPACE | ND_SPACE_IMAGE, NULL); - /* todo: move edge and face drawing options here from G.f */ prop = RNA_def_property(srna, "pixel_snap_mode", PROP_ENUM, PROP_NONE); -- cgit v1.2.3