[Bf-blender-cvs] [c101ded4632] master: Cleanup: remove disabled code
Campbell Barton
noreply at git.blender.org
Wed Dec 15 13:45:40 CET 2021
Commit: c101ded46327d7b423c8f43297ccedd01ca9a406
Author: Campbell Barton
Date: Wed Dec 15 23:43:55 2021 +1100
Branches: master
https://developer.blender.org/rBc101ded46327d7b423c8f43297ccedd01ca9a406
Cleanup: remove disabled code
Originally pointcache wasn't supported when the file wasn't saved.
Remove commented code as this hasn't been the case for a long time.
===================================================================
M source/blender/blenkernel/intern/pointcache.c
===================================================================
diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c
index 30985eb7df9..094181afca9 100644
--- a/source/blender/blenkernel/intern/pointcache.c
+++ b/source/blender/blenkernel/intern/pointcache.c
@@ -2626,8 +2626,6 @@ void BKE_ptcache_id_clear(PTCacheID *pid, int mode, unsigned int cfra)
}
#endif
- // if (!G.relbase_valid) return; /* Save blend file before using pointcache. */
-
/* clear all files in the temp dir with the prefix of the ID and the ".bphys" suffix */
switch (mode) {
case PTCACHE_CLEAR_ALL:
More information about the Bf-blender-cvs
mailing list