Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2018-03-18 17:37:23 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-03-18 17:37:23 +0300
commit0301df40e5b6c51575d7f9013a1a28b901063829 (patch)
tree70b3f043d9608130ae594816840dd293bd351bf0 /source/blender/makesrna/intern/rna_smoke.c
parent368c581df1e9b211bb38c40f1004400486e5e923 (diff)
Fix ugly recursive pattern in RNA PointCache data layout.
PointCache was having a collection of items of PointCache type, having a collection of items of PointCache type, having... Nuff said. For now, chose the 'ugly' way to fix it, that is, the one that changes nothing to API and scripts using it: we define another 'PointCacheItem' RNA type for items of our point cache collection, which has exact same interface as PointCache except for the collection. This is doomed to be rewritten at some point anyway, not worth spending time trying to define a really correct data layout for now.
Diffstat (limited to 'source/blender/makesrna/intern/rna_smoke.c')
-rw-r--r--source/blender/makesrna/intern/rna_smoke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c
index 54daba706c7..3bfe1fbcb83 100644
--- a/source/blender/makesrna/intern/rna_smoke.c
+++ b/source/blender/makesrna/intern/rna_smoke.c
@@ -622,6 +622,7 @@ static void rna_def_smoke_domain_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "point_cache", PROP_POINTER, PROP_NONE);
RNA_def_property_flag(prop, PROP_NEVER_NULL);
RNA_def_property_pointer_sdna(prop, NULL, "point_cache[0]");
+ RNA_def_property_struct_type(prop, "PointCache");
RNA_def_property_ui_text(prop, "Point Cache", "");
prop = RNA_def_property(srna, "point_cache_compress_type", PROP_ENUM, PROP_NONE);