mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-16 16:20:42 +02:00
Fixed a bug were loading a map in radiant wouldn't clear the new cache.
This commit is contained in:
@@ -2343,10 +2343,14 @@ void CCamWnd::FreeRendererState() {
|
||||
s_editorEntityStates.RemoveIndex(i);
|
||||
}
|
||||
|
||||
for (entity_t* ent = entities.next; ent != &entities; ent = ent->next) {
|
||||
ent->modelDef = -1;
|
||||
ent->lightDef = -1;
|
||||
if (entities.next != NULL)
|
||||
{
|
||||
for (entity_t* ent = entities.next; ent != &entities; ent = ent->next) {
|
||||
ent->modelDef = -1;
|
||||
ent->lightDef = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (int i = s_editorBModelStates.Num() - 1; i >= 0; i--) {
|
||||
EditorFreeBModelState(i);
|
||||
|
||||
Reference in New Issue
Block a user