[Bf-blender-cvs] [429c1d60a45] tmp-static-override-insertion: Static overrides: make it clear collections need specific apply callbacks.
Bastien Montagne
noreply at git.blender.org
Wed May 2 11:38:16 CEST 2018
Commit: 429c1d60a45b5a2984c9acd64133cb7c014fe862
Author: Bastien Montagne
Date: Tue May 1 16:27:47 2018 +0200
Branches: tmp-static-override-insertion
https://developer.blender.org/rB429c1d60a45b5a2984c9acd64133cb7c014fe862
Static overrides: make it clear collections need specific apply callbacks.
===================================================================
M source/blender/makesrna/intern/rna_rna.c
===================================================================
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;
}
More information about the Bf-blender-cvs
mailing list