Blender Git Commit Log
Git Commits -> Revision 3e0ff35
Revision 3e0ff35 by Lukas Toenne (master) December 19, 2014, 12:34 (GMT) |
Fix for bad file name string matching in point caches, leading to deletion of baked caches. This happens when objects use file names with matching prefixes: "CubeX" -> not baked "CubeXYZ" -> baked The first objects cache should be discarded up to the current frame on file load, but the second should be left intact. But because the cache file names for both use the same prefix as well (based on hex name representation) they both match the "CubeX" name and get discarded. Adding the underscore terminator solves this issue, because it is never part of the hex file name string. WARNING: this solution does not work with custom names for point caches. This feature is pretty much broken, users have to ensure their names are unique themselves. Due to the possibility of underscores in names and the ambiguity of point cache suffixes there is no reliable way to encode filenames in that case. |
Commit Details:
Full Hash: 3e0ff35b4b1bc9151206b250740031baea0f9204
Parent Commit: ef5c036
Lines Changed: +10, -3
1 Modified Path:
/source/blender/blenkernel/intern/pointcache.c (+10, -3) (Diff)