[Bf-blender-cvs] [1b972a38fef] blender2.8: Lookdev: Renamed RNA

Jeroen Bakker noreply at git.blender.org
Tue Jun 19 14:05:17 CEST 2018


Commit: 1b972a38fef3e373872f2ea3cb8eb75aa50a23eb
Author: Jeroen Bakker
Date:   Tue Jun 19 14:03:53 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB1b972a38fef3e373872f2ea3cb8eb75aa50a23eb

Lookdev: Renamed RNA

studiolight_background => studiolight_background_alpha
Removed "Show" from the label

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

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 b477aefd9da..c9768f54ba0 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3650,7 +3650,7 @@ class VIEW3D_PT_shading_lighting(Panel):
             sub.operator('wm.studiolight_userpref_show', emboss=False, text="", icon='PREFERENCES')
             if shading.selected_studio_light.orientation == 'WORLD':
                 layout.row().prop(shading, "studiolight_rot_z")
-                layout.row().prop(shading, "studiolight_background")
+                layout.row().prop(shading, "studiolight_background_alpha")
             layout.prop(shading, "use_scene_light")
 
 
diff --git a/source/blender/makesrna/intern/rna_space.c b/source/blender/makesrna/intern/rna_space.c
index 60a6e55f700..13ea2dd436e 100644
--- a/source/blender/makesrna/intern/rna_space.c
+++ b/source/blender/makesrna/intern/rna_space.c
@@ -2436,10 +2436,10 @@ static void rna_def_space_view3d_shading(BlenderRNA *brna)
 	RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
 	RNA_def_property_update(prop, NC_SPACE | ND_SPACE_VIEW3D, NULL);
 
-	prop = RNA_def_property(srna, "studiolight_background", PROP_FLOAT, PROP_FACTOR);
+	prop = RNA_def_property(srna, "studiolight_background_alpha", PROP_FLOAT, PROP_FACTOR);
 	RNA_def_property_float_sdna(prop, NULL, "shading.studiolight_background");
 	RNA_def_property_float_default(prop, 0.0);
-	RNA_def_property_ui_text(prop, "Show Background", "Show the studiolight in the background");
+	RNA_def_property_ui_text(prop, "Background", "Show the studiolight in the background");
 	RNA_def_property_range(prop, 0.0f, 1.0f);
 	RNA_def_property_ui_range(prop, 0.00f, 1.0f, 1, 3);
 	RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);



More information about the Bf-blender-cvs mailing list