[Bf-blender-cvs] [3e3f6754b4e] blender2.8: Cleanup: rename RNA property to match UI

Campbell Barton noreply at git.blender.org
Sat May 26 09:51:47 CEST 2018


Commit: 3e3f6754b4ec828b5d970766bc336fcad2990e64
Author: Campbell Barton
Date:   Sat May 26 09:51:21 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3e3f6754b4ec828b5d970766bc336fcad2990e64

Cleanup: rename RNA property to match UI

===================================================================

M	release/scripts/startup/bl_ui/space_view3d.py
M	source/blender/makesrna/intern/rna_space.c

===================================================================

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");



More information about the Bf-blender-cvs mailing list