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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-23 17:59:06 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2013-06-23 17:59:06 +0400
commitb9ffdb5cfd9a10ec66e4a5b6be01a606dc52281e (patch)
treea0c7c8f0ea123217d53ffc2df8e67088458dcbc0 /source/blender/makesrna/intern/makesrna.c
parent4a34d86f329ed6728585a4eb9b5b817684d784b8 (diff)
Workaround visual studio 2012 compiler bug compiling large RNA_blender_cpp.h, removed
the comments/descriptions for now to make it smaller. Maybe eventual solution would be to split this up but for now it's not a public API yet anyway.
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r--source/blender/makesrna/intern/makesrna.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index 3c2e3ddb300..9686d7fab51 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -1659,12 +1659,15 @@ static void rna_def_property_funcs_header_cpp(FILE *f, StructRNA *srna, Property
if (prop->flag & (PROP_IDPROPERTY | PROP_BUILTIN))
return;
+ /* disabled for now to avoid msvc compiler error due to large file size */
+#if 0
if (prop->name && prop->description && prop->description[0] != '\0')
fprintf(f, "\t/* %s: %s */\n", prop->name, prop->description);
else if (prop->name)
fprintf(f, "\t/* %s */\n", prop->name);
else
fprintf(f, "\t/* */\n");
+#endif
switch (prop->type) {
case PROP_BOOLEAN:
@@ -1854,14 +1857,15 @@ static void rna_def_struct_function_prototype_cpp(FILE *f, StructRNA *UNUSED(srn
static void rna_def_struct_function_header_cpp(FILE *f, StructRNA *srna, FunctionDefRNA *dfunc)
{
- FunctionRNA *func = dfunc->func;
-
- if (!dfunc->call)
- return;
-
- fprintf(f, "\n\t/* %s */\n", func->description);
+ if (dfunc->call) {
+ /* disabled for now to avoid msvc compiler error due to large file size */
+#if 0
+ FunctionRNA *func = dfunc->func;
+ fprintf(f, "\n\t/* %s */\n", func->description);
+#endif
- rna_def_struct_function_prototype_cpp(f, srna, dfunc, NULL, 1);
+ rna_def_struct_function_prototype_cpp(f, srna, dfunc, NULL, 1);
+ }
}
static void rna_def_property_funcs_impl_cpp(FILE *f, StructRNA *srna, PropertyDefRNA *dp)