diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2014-10-31 19:10:34 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 11:30:05 +0300 |
commit | cd717f145db9964cede0b46319c79c8dcef9bfd6 (patch) | |
tree | 2be8dd37b5fd8fd6c05d0099f7b750e86ec4d7c1 /source/blender/makesrna | |
parent | 9d27b53d413650713a2125e2cfc69cac0cdfe7f9 (diff) |
Expose hair grid info in the RNA (read-only); it can be useful for
debugging purposes.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 8e7a1d84d9a..39977e05605 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) |