Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix undo loosing entities.
If you moved a fixedsize entity (e.g. light, ammo, etc.) and undo'd the operation, only the brush used for interacting was undo'd, not the entity itself, it remained on the original position.

Reported by Rambetter.
  • Loading branch information
mfn committed Jan 4, 2010
1 parent f025eaf commit ee1ef98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions radiant/undo.cpp
Expand Up @@ -506,6 +506,10 @@ void Undo_EndBrushList(brush_t *brushlist)
for (brush_t* pBrush = brushlist->next; pBrush != NULL && pBrush != brushlist; pBrush=pBrush->next)
{
pBrush->undoId = g_lastundo->id;
if (pBrush->owner->eclass->fixedsize == 1)
{
pBrush->owner->undoId = pBrush->undoId;
}
}
}

Expand Down

0 comments on commit ee1ef98

Please sign in to comment.