[Bf-blender-cvs] [60a36f20283] blender2.8: Eevee: Use PROP_NONE for probe grid resolution

Dalai Felinto noreply at git.blender.org
Thu Jun 15 15:02:44 CEST 2017


Commit: 60a36f202837037b6f6d31d4d067ec783f53d0ba
Author: Dalai Felinto
Date:   Thu Jun 15 15:02:32 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB60a36f202837037b6f6d31d4d067ec783f53d0ba

Eevee: Use PROP_NONE for probe grid resolution

It makes no sense to use PROP_PIXEL as unit here.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_lightprobe.c b/source/blender/makesrna/intern/rna_lightprobe.c
index 50a7dd57e84..93a57d0ea57 100644
--- a/source/blender/makesrna/intern/rna_lightprobe.c
+++ b/source/blender/makesrna/intern/rna_lightprobe.c
@@ -147,17 +147,17 @@ static void rna_def_lightprobe(BlenderRNA *brna)
 	RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, NULL);
 
 	/* irradiance grid */
-	prop = RNA_def_property(srna, "grid_resolution_x", PROP_INT, PROP_PIXEL);
+	prop = RNA_def_property(srna, "grid_resolution_x", PROP_INT, PROP_NONE);
 	RNA_def_property_range(prop, 1, 256);
 	RNA_def_property_ui_text(prop, "Resolution X", "Number of sample along the x axis of the volume");
 	RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc");
 
-	prop = RNA_def_property(srna, "grid_resolution_y", PROP_INT, PROP_PIXEL);
+	prop = RNA_def_property(srna, "grid_resolution_y", PROP_INT, PROP_NONE);
 	RNA_def_property_range(prop, 1, 256);
 	RNA_def_property_ui_text(prop, "Resolution Y", "Number of sample along the y axis of the volume");
 	RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc");
 
-	prop = RNA_def_property(srna, "grid_resolution_z", PROP_INT, PROP_PIXEL);
+	prop = RNA_def_property(srna, "grid_resolution_z", PROP_INT, PROP_NONE);
 	RNA_def_property_range(prop, 1, 256);
 	RNA_def_property_ui_text(prop, "Resolution Z", "Number of sample along the z axis of the volume");
 	RNA_def_property_update(prop, NC_MATERIAL | ND_SHADING, "rna_LightProbe_recalc");




More information about the Bf-blender-cvs mailing list