Commit: cd717f145db9964cede0b46319c79c8dcef9bfd6
Author: Lukas Tönne
Date:   Fri Oct 31 17:10:34 2014 +0100
Branches: master
https://developer.blender.org/rBcd717f145db9964cede0b46319c79c8dcef9bfd6

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 8e7a1d8..39977e0 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -2501,6 +2501,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