diff options
author | Daniel Dunbar <daniel@zuster.org> | 2005-08-03 23:56:27 +0400 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2005-08-03 23:56:27 +0400 |
commit | 74820841df892ff58508d4d338f3051089515e3b (patch) | |
tree | 4d0d1dc09e9a50c3668d9bd70261df941c201d5b /source/blender/blenloader/intern/genfile.c | |
parent | 1db88bd065f9638f235c2a1047b50255de7e05ac (diff) |
- removed BLO_findstruct_offset (obsolete)
- remove python access to Optimal and Subsurf flags (they don't
work this way anymore, I suppose need to replace with python
access to modifiers but not going to do right now).
- removed interface access to OPTIMAL mode, needs to be rethough...
this means at the moment subsurfs outside editmode always draw
and render all edges
Diffstat (limited to 'source/blender/blenloader/intern/genfile.c')
-rw-r--r-- | source/blender/blenloader/intern/genfile.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/source/blender/blenloader/intern/genfile.c b/source/blender/blenloader/intern/genfile.c index 7ace38e3490..39a7f3e4e62 100644 --- a/source/blender/blenloader/intern/genfile.c +++ b/source/blender/blenloader/intern/genfile.c @@ -483,47 +483,6 @@ struct SDNA *dna_sdna_from_data(void *data, int datalen, int do_endian_swap) return sdna; } - /* XXX, this routine was added because at one - * point I thought using the dna more would be - * nice, but really thats a flawed idea, you - * already know about your memory structures when - * you are compiling no need to redirect that - * through the DNA, the python stuff should be - * changed to not use this routine (a bit - * o' work). - zr - */ -int BLO_findstruct_offset(char *structname, char *member) -{ - extern char DNAstr[]; /* DNA.c */ - extern int DNAlen; - - struct SDNA *sdna; - int a, offset; - short *sp; - - sdna= dna_sdna_from_data(DNAstr, DNAlen, 0); - - sp= findstruct_name(sdna, structname); - - if(sp) { - a= sp[1]; /* nr of elems */ - sp+= 2; - offset= 0; - - while(a--) { - if(strcmp(sdna->names[sp[1]], member)==0) { - dna_freestructDNA(sdna); - return offset; - } - - offset+= elementsize(sdna, sp[0], sp[1]); - sp+= 2; - } - } - - dna_freestructDNA(sdna); - return -1; -} /* ******************** END READ DNA ********************** */ |