Cleanup: rename RNA property to match UI
This commit is contained in:
parent
33e45658eb
commit
3e3f6754b4
@ -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()
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user