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:
authorRay Molenkamp <github@lazydodo.com>2020-02-17 21:04:55 +0300
committerRay Molenkamp <github@lazydodo.com>2020-02-17 21:04:55 +0300
commit5f3b898638b2c306994e69c0ac6a26b8ac017448 (patch)
tree0b3e818e84f6584434cd2e87e0c6ed8d43a9b398 /source/blender/makesrna/intern/rna_object_api.c
parent37cdfac6b9bd42f85b74f2f36d0959f02efa4506 (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.c6
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)