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-05-01 17:27:47 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-05-02 10:54:42 +0300
commit429c1d60a45b5a2984c9acd64133cb7c014fe862 (patch)
tree3ecc0fa85741306232e2f257877b29214e1af0e4 /source/blender/makesrna/intern/rna_rna.c
parent9e87069c3ec4c4327f0d2e8c2c450436cd7866a0 (diff)
Static overrides: make it clear collections need specific apply callbacks.
Diffstat (limited to 'source/blender/makesrna/intern/rna_rna.c')
-rw-r--r--source/blender/makesrna/intern/rna_rna.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_rna.c b/source/blender/makesrna/intern/rna_rna.c
index bdb5c215da2..8cd0f94f546 100644
--- a/source/blender/makesrna/intern/rna_rna.c
+++ b/source/blender/makesrna/intern/rna_rna.c
@@ -2301,8 +2301,13 @@ bool rna_property_override_apply_default(
if (value != buff) MEM_freeN(value);
return true;
}
+ case PROP_COLLECTION:
+ {
+ BLI_assert(!"You need to define a specific override apply callback for enums.");
+ return false;
+ }
default:
- /* TODO PROP_COLLECTION of course! */
+ BLI_assert(0);
return false;
}