[Bf-blender-cvs] [310bd2f811a] master: Fix T65942 Eevee: Reflection plane has "show data" checked by default

Clément Foucault noreply at git.blender.org
Wed Jun 26 14:06:09 CEST 2019


Commit: 310bd2f811acd7ae5d149274720d200df140558e
Author: Clément Foucault
Date:   Wed Jun 26 14:05:55 2019 +0200
Branches: master
https://developer.blender.org/rB310bd2f811acd7ae5d149274720d200df140558e

Fix T65942 Eevee: Reflection plane has "show data" checked by default

Disable by default and rename option to "Show Preview Plane".

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

M	source/blender/blenkernel/intern/lightprobe.c
M	source/blender/makesrna/intern/rna_lightprobe.c

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

diff --git a/source/blender/blenkernel/intern/lightprobe.c b/source/blender/blenkernel/intern/lightprobe.c
index 01b368ee0f8..1c2f8d22f3e 100644
--- a/source/blender/blenkernel/intern/lightprobe.c
+++ b/source/blender/blenkernel/intern/lightprobe.c
@@ -45,7 +45,7 @@ void BKE_lightprobe_init(LightProbe *probe)
   probe->vis_blur = 0.2f;
   probe->intensity = 1.0f;
 
-  probe->flag = LIGHTPROBE_FLAG_SHOW_INFLUENCE | LIGHTPROBE_FLAG_SHOW_DATA;
+  probe->flag = LIGHTPROBE_FLAG_SHOW_INFLUENCE;
 }
 
 void *BKE_lightprobe_add(Main *bmain, const char *name)
diff --git a/source/blender/makesrna/intern/rna_lightprobe.c b/source/blender/makesrna/intern/rna_lightprobe.c
index 8b6b248eac2..b6d6fac587e 100644
--- a/source/blender/makesrna/intern/rna_lightprobe.c
+++ b/source/blender/makesrna/intern/rna_lightprobe.c
@@ -225,8 +225,9 @@ static void rna_def_lightprobe(BlenderRNA *brna)
   /* Data preview */
   prop = RNA_def_property(srna, "show_data", PROP_BOOLEAN, PROP_NONE);
   RNA_def_property_boolean_sdna(prop, NULL, "flag", LIGHTPROBE_FLAG_SHOW_DATA);
-  RNA_def_property_ui_text(
-      prop, "Show Data", "Show captured lighting data into the 3D view for debugging purpose");
+  RNA_def_property_ui_text(prop,
+                           "Show Preview Plane",
+                           "Show captured lighting data into the 3D view for debugging purpose");
   RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, NULL);
 
   /* common */



More information about the Bf-blender-cvs mailing list