[Bf-blender-cvs] [d8b811cfe93] temp-gpu-image-engine: Cleanup: remove disabled code
Campbell Barton
noreply at git.blender.org
Wed Dec 15 14:37:53 CET 2021
Commit: d8b811cfe93560c9040a1b9a796ef8eb33f707e6
Author: Campbell Barton
Date: Wed Dec 15 23:43:55 2021 +1100
Branches: temp-gpu-image-engine
https://developer.blender.org/rBd8b811cfe93560c9040a1b9a796ef8eb33f707e6
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