diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 20:29:31 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2015-01-20 20:32:06 +0300 |
commit | 9d9dc06014ea7f8fd186246d1e55d429c5193cb6 (patch) | |
tree | faad9521f23f32c9ce1b9331f9763c69d52bedae /source/blender/makesrna | |
parent | 3356f3f0bb15fa50c2920e4bc428a8375b43f321 (diff) |
Made SimDebugData into a single global instance.
This way it doesn't have to be stored as DNA runtime pointers or passed
down as a function argument. Currently there is now no property or
button to enable debugging, this will be added again later.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index 39977e05605..18bfea026e1 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -720,28 +720,6 @@ static int rna_LaplacianDeformModifier_is_bind_get(PointerRNA *ptr) return ((lmd->flag & MOD_LAPLACIANDEFORM_BIND) && (lmd->cache_system != NULL)); } -static int rna_ClothModifier_show_debug_data_get(PointerRNA *ptr) -{ - ClothModifierData *clmd = (ClothModifierData *)ptr->data; - return clmd->debug_data != NULL; -} - -static void rna_ClothModifier_show_debug_data_set(PointerRNA *ptr, int value) -{ - ClothModifierData *clmd = (ClothModifierData *)ptr->data; - if (value) { - if (!clmd->debug_data) { - clmd->debug_data = BKE_sim_debug_data_new(); - } - } - else { - if (clmd->debug_data) { - BKE_sim_debug_data_free(clmd->debug_data); - clmd->debug_data = NULL; - } - } -} - /* NOTE: Curve and array modifiers requires curve path to be evaluated, * dependency graph will make sure that curve eval would create such a path, * but if curve was already evaluated we might miss path. @@ -2496,11 +2474,6 @@ static void rna_def_modifier_cloth(BlenderRNA *brna) prop = RNA_def_property(srna, "point_cache", PROP_POINTER, PROP_NONE); RNA_def_property_flag(prop, PROP_NEVER_NULL); RNA_def_property_ui_text(prop, "Point Cache", ""); - - prop = RNA_def_property(srna, "show_debug_data", PROP_BOOLEAN, PROP_NONE); - 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"); |