Before:
- refreshing textures were refreshing VFS (to load enabled texture packs)
but models were not refreshed
- refreshing textures were refreshing models but textures would be missing
since the VFS was not refreshed and texture packs would be not loaded
After:
- refreshing textures or models both refresh VFS, textures and models,
this way you don't anymore reload models without refreshing textures, or
refresh VFS without reloading models, etc.
QE_InitVFS();
GlobalFileSystem().refresh();
g_vfsInitialized = true;
+ // also refresg models
+ RefreshReferences();
// also refresh texture browser
TextureBrowser_RefreshShaders();
}
GlobalCommands_insert( "SaveMapAs", FreeCaller<SaveMapAs>() );
GlobalCommands_insert( "ExportSelected", FreeCaller<ExportMap>() );
GlobalCommands_insert( "SaveRegion", FreeCaller<SaveRegion>() );
- GlobalCommands_insert( "RefreshReferences", FreeCaller<RefreshReferences>() );
+ GlobalCommands_insert( "RefreshReferences", FreeCaller<VFS_Refresh>() );
GlobalCommands_insert( "ProjectSettings", FreeCaller<DoProjectSettings>() );
GlobalCommands_insert( "Exit", FreeCaller<Exit>() );