diff options
author | Ton Roosendaal <ton@blender.org> | 2007-01-18 13:59:23 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2007-01-18 13:59:23 +0300 |
commit | 53aabe99f8e965211715374a793dbc8a406130c8 (patch) | |
tree | 077bfc7f8e5408c593a471812c8f70bd80fcbb59 /source/blender/blenloader | |
parent | 425bada3a15ea795c45015d169f36a47cc4f0bee (diff) |
Part 2 of bugfix #5741
Modifiers; on read file it sets user counter of linked ID data, except
for Object IDs.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/readfile.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c index ba5be77e561..53b39c9bac8 100644 --- a/source/blender/blenloader/intern/readfile.c +++ b/source/blender/blenloader/intern/readfile.c @@ -2607,6 +2607,9 @@ static void lib_link_modifiers__linkModifiers(void *userData, Object *ob, FileData *fd = userData; *idpoin = newlibadr(fd, ob->id.lib, *idpoin); + /* hardcoded bad exception; non-object modifier data gets user count (texture, displace) */ + if(*idpoin && GS((*idpoin)->name)!=ID_OB) + (*idpoin)->us++; } static void lib_link_modifiers(FileData *fd, Object *ob) { |