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:
Diffstat (limited to 'source/blender/makesrna/intern/makesrna.c')
-rw-r--r--source/blender/makesrna/intern/makesrna.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index af3069cf95e..ae414489f52 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -4347,7 +4347,9 @@ static void rna_generate(BlenderRNA *brna, FILE *f, const char *filename, const
/* include the generated prototypes header */
fprintf(f, "#include \"rna_prototypes_gen.h\"\n\n");
- fprintf(f, "#include \"%s\"\n", filename);
+ if (filename) {
+ fprintf(f, "#include \"%s\"\n", filename);
+ }
if (api_filename) {
fprintf(f, "#include \"%s\"\n", api_filename);
}