diff --git a/panda/src/gobj/texture.cxx b/panda/src/gobj/texture.cxx index 101bb6cb57..a764051946 100644 --- a/panda/src/gobj/texture.cxx +++ b/panda/src/gobj/texture.cxx @@ -3003,6 +3003,9 @@ do_reload_ram_image(bool allow_compression) { if (do_has_ram_image() && record != (BamCacheRecord *)NULL) { if (cache->get_cache_textures() || (_ram_image_compression != CM_off && cache->get_cache_compressed_textures())) { // Update the cache. + if (record != (BamCacheRecord *)NULL) { + record->add_dependent_file(_fullpath); + } record->set_data(this, false); cache->store(record); }