[Bf-blender-cvs] [809d5d9] alembic: Fix for lib_link of cache shape keys, avoid discarding this, they are expected to stay alive.
Lukas Tönne
noreply at git.blender.org
Mon May 4 13:05:38 CEST 2015
Commit: 809d5d92d35b1a8ccbc948e125f94beff15e2b00
Author: Lukas Tönne
Date: Mon May 4 12:54:29 2015 +0200
Branches: alembic
https://developer.blender.org/rB809d5d92d35b1a8ccbc948e125f94beff15e2b00
Fix for lib_link of cache shape keys, avoid discarding this, they are
expected to stay alive.
===================================================================
M source/blender/blenloader/intern/readfile.c
===================================================================
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index 1057f84..1e22f2e 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -2011,7 +2011,7 @@ static void lib_link_cache_modifiers(FileData *fd, CacheLibrary *cachelib)
case eCacheModifierType_StrandsKey: {
StrandsKeyCacheModifier *skmd = (StrandsKeyCacheModifier *)md;
/* Key is a local ID block, not handled by foreachIDLink */
- skmd->key = newlibadr(fd, cachelib->id.lib, skmd->key);
+ skmd->key = newlibadr_us(fd, cachelib->id.lib, skmd->key);
break;
}
}
More information about the Bf-blender-cvs
mailing list