From c101ded46327d7b423c8f43297ccedd01ca9a406 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 15 Dec 2021 23:43:55 +1100 Subject: [PATCH] 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. --- source/blender/blenkernel/intern/pointcache.c | 2 -- 1 file changed, 2 deletions(-) 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: