Commit: 12657f7ef6044fe5a1c9bebbc93b5e38846f07c4
Author: Lukas Tönne
Date:   Fri Oct 31 17:10:34 2014 +0100
Branches: hair_immediate_fixes
https://developer.blender.org/rB12657f7ef6044fe5a1c9bebbc93b5e38846f07c4

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)

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to