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:
authorTon Roosendaal <ton@blender.org>2004-01-12 03:15:21 +0300
committerTon Roosendaal <ton@blender.org>2004-01-12 03:15:21 +0300
commit8a0317c8f120b0b3f839f374f1a9a1b12cd73b45 (patch)
tree7cad511375c8366afab6ee2d53b2d02362ae3eef /source/blender/blenloader/intern/genfile.c
parentfac8a7027d925a630b7780eacf12ce4fb5ae63cf (diff)
Historical commit... error found in DNA code! <blush>
It is just too hard to describe, just that it didnt check for changing arrays well enough, causing contents of array textfield[] to be copied in array text[].... Anyhoo, this fixes the grey text, as showed up in brokens commit of saturday. Thanks Matt! :)
Diffstat (limited to 'source/blender/blenloader/intern/genfile.c')
-rw-r--r--source/blender/blenloader/intern/genfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenloader/intern/genfile.c b/source/blender/blenloader/intern/genfile.c
index ea7f6dc2985..7ace38e3490 100644
--- a/source/blender/blenloader/intern/genfile.c
+++ b/source/blender/blenloader/intern/genfile.c
@@ -885,7 +885,7 @@ static void reconstruct_elem(struct SDNA *newsdna, struct SDNA *oldsdna, char *t
}
else if(array) { /* name is an array */
- if( strncmp(name, oname, array)==0 ) { /* basis equal */
+ if(oname[array]=='[' && strncmp(name, oname, array)==0 ) { /* basis equal */
cursize= arraysize(name, strlen(name));
oldsize= arraysize(oname, strlen(oname));