diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-26 10:51:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-26 10:51:21 +0300 |
commit | 3e3f6754b4ec828b5d970766bc336fcad2990e64 (patch) | |
tree | 99f05704218c80b73a635050a21834a18cdd09cb | |
parent | 33e45658ebc2a79acda259f7be748ad64780e982 (diff) |
Cleanup: rename RNA property to match UI
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 6 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_space.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index e13edccc566..ff0ae8a20d5 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3530,13 +3530,13 @@ class VIEW3D_PT_shading(Panel): col.separator() row = col.row() - row.prop(shading, "show_see_through") + row.prop(shading, "show_xray") row = col.row() - row.active = not shading.show_see_through + row.active = not shading.show_xray row.prop(shading, "show_shadows") sub = row.row() - sub.active = shading.show_shadows and not shading.show_see_through + sub.active = shading.show_shadows and not shading.show_xray sub.prop(shading, "shadow_intensity", text="") row = col.row() diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c index 388316f9677..75342a5191d 100644 --- a/source/blender/makesrna/intern/rna_space.c +++ b/source/blender/makesrna/intern/rna_space.c @@ -2305,7 +2305,7 @@ static void rna_def_space_view3d_shading(BlenderRNA *brna) RNA_def_property_ui_text(prop, "Shadow", "Show Shadow"); RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL); - prop = RNA_def_property(srna, "show_see_through", PROP_BOOLEAN, PROP_NONE); + prop = RNA_def_property(srna, "show_xray", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "shading.flag", V3D_SHADING_XRAY); RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); RNA_def_property_ui_text(prop, "X-Ray", "Show whole scene transparent"); |