[Bf-blender-cvs] [82b04d1] temp_merge_gooseberry_hair: Expose hair grid info in the RNA (read-only); it can be useful for debugging purposes.

Lukas Tönne noreply at git.blender.org
Mon Jan 19 20:50:27 CET 2015


Commit: 82b04d1d6a9952a10074c19345ef5dddae6861b0
Author: Lukas Tönne
Date:   Fri Oct 31 17:10:34 2014 +0100
Branches: temp_merge_gooseberry_hair
https://developer.blender.org/rB82b04d1d6a9952a10074c19345ef5dddae6861b0

Expose hair grid info in the RNA (read-only); it can be useful for
debugging purposes.

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

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

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

diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c
index 7ef1784..da640c6 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -2093,6 +2093,21 @@ static void rna_def_modifier_cloth(BlenderRNA *brna)
 	RNA_def_property_boolean_funcs(prop, "rna_ClothModifier_show_debug_data_get", "rna_ClothModifier_show_debug_data_set");
 	RNA_def_property_ui_text(prop, "Debug", "Show debug info");
 	RNA_def_property_update(prop, 0, "rna_Modifier_update");
+
+	prop = RNA_def_property(srna, "hair_grid_min", PROP_FLOAT, PROP_NONE);
+	RNA_def_property_float_sdna(prop, NULL, "hair_grid_min");
+	RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+	RNA_def_property_ui_text(prop, "Hair Grid Minimum", "");
+
+	prop = RNA_def_property(srna, "hair_grid_max", PROP_FLOAT, PROP_NONE);
+	RNA_def_property_float_sdna(prop, NULL, "hair_grid_max");
+	RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+	RNA_def_property_ui_text(prop, "Hair Grid Maximum", "");
+
+	prop = RNA_def_property(srna, "hair_grid_resolution", PROP_INT, PROP_NONE);
+	RNA_def_property_int_sdna(prop, NULL, "hair_grid_res");
+	RNA_def_property_clear_flag(prop, PROP_EDITABLE);
+	RNA_def_property_ui_text(prop, "Hair Grid Resolution", "");
 }
 
 static void rna_def_modifier_smoke(BlenderRNA *brna)




More information about the Bf-blender-cvs mailing list