diff options
author | Ray Molenkamp <github@lazydodo.com> | 2020-02-17 21:04:55 +0300 |
---|---|---|
committer | Ray Molenkamp <github@lazydodo.com> | 2020-02-17 21:04:55 +0300 |
commit | 5f3b898638b2c306994e69c0ac6a26b8ac017448 (patch) | |
tree | 0b3e818e84f6584434cd2e87e0c6ed8d43a9b398 /source/blender/makesrna/intern/rna_object_api.c | |
parent | 37cdfac6b9bd42f85b74f2f36d0959f02efa4506 (diff) |
MSVC: Fix obscure RNA related build error
When you switch between debug/release mode a lot, you could end up
in a situation where the generated RNA code was out of sync between
the two configurations.
There was one function optionally defined with an `#ifndef NDEBUG`
guard, this patch adds a stub implementation for the other configurations
to prevent build errors.
Differential Revision: https://developer.blender.org/D6855
Reviewers: brecht
Diffstat (limited to 'source/blender/makesrna/intern/rna_object_api.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object_api.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_object_api.c b/source/blender/makesrna/intern/rna_object_api.c index d3c22098294..2acfd62fd03 100644 --- a/source/blender/makesrna/intern/rna_object_api.c +++ b/source/blender/makesrna/intern/rna_object_api.c @@ -687,6 +687,12 @@ void rna_Object_me_eval_info( } } } +# else +void rna_Object_me_eval_info( + struct Object *ob, bContext *C, int type, PointerRNA *rnaptr_depsgraph, char *result) +{ + result[0] = '\0'; +} # endif /* NDEBUG */ static bool rna_Object_update_from_editmode(Object *ob, Main *bmain) |