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>2009-03-15 14:30:02 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-03-15 14:30:02 +0300
commit9ad4cd89c2cdee8d8086f7da9d9b35fdec12366a (patch)
tree4eb4e19ee585823bb1cce6ccbfba34d608ad2f26
parent863a0e246f1e845bbb512c870856c9110a9ad1b3 (diff)
RNA:
* Fix a dependency issue in Makefiles. * Fix use of uninitialized variable in makesrna.
-rw-r--r--source/blender/makesrna/intern/Makefile4
-rw-r--r--source/blender/makesrna/intern/makesrna.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/Makefile b/source/blender/makesrna/intern/Makefile
index aad4acdbf38..bb06bc51336 100644
--- a/source/blender/makesrna/intern/Makefile
+++ b/source/blender/makesrna/intern/Makefile
@@ -38,6 +38,10 @@ CSRCS = $(GENSRCS) rna_access.c rna_dependency.c
include nan_compile.mk
+ifdef NAN_DEPEND
+-include $(MAKESRCS:%.c=$(DIR)/$(DEBUG_DIR)%.d)
+endif
+
CFLAGS += $(LEVEL_1_C_WARNINGS)
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
diff --git a/source/blender/makesrna/intern/makesrna.c b/source/blender/makesrna/intern/makesrna.c
index c22522d51ba..77c9b227982 100644
--- a/source/blender/makesrna/intern/makesrna.c
+++ b/source/blender/makesrna/intern/makesrna.c
@@ -1684,7 +1684,6 @@ static void rna_generate_header_cpp(BlenderRNA *brna, FILE *f)
fprintf(f, "/**************** %s ****************/\n\n", srna->name);
- srna= ds->srna;
fprintf(f, "class %s : public %s {\n", srna->identifier, (srna->base)? srna->base->identifier: "Pointer");
fprintf(f, "public:\n");
fprintf(f, "\t%s(const PointerRNA& ptr) :\n\t\t%s(ptr)", srna->identifier, (srna->base)? srna->base->identifier: "Pointer");
@@ -1747,6 +1746,8 @@ static int rna_preprocess(char *outfile)
strcpy(deffile, outfile);
strcat(deffile, "RNA_blender_cpp.h");
+ status= (DefRNA.error != 0);
+
if(status) {
make_bad_file(deffile);
}
@@ -1765,11 +1766,8 @@ static int rna_preprocess(char *outfile)
}
}
-
rna_sort(brna);
- status= (DefRNA.error != 0);
-
/* create rna_gen_*.c files */
for(i=0; PROCESS_ITEMS[i].filename; i++) {
strcpy(deffile, outfile);