fix undo bug with entities (lights) - Markus Fischer

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@332 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
TTimo 2010-01-08 04:01:08 +00:00
parent 48d505dff5
commit 514d4d9d10

View file

@ -506,6 +506,10 @@ void Undo_EndBrushList(brush_t *brushlist)
for (brush_t* pBrush = brushlist->next; pBrush != NULL && pBrush != brushlist; pBrush=pBrush->next) for (brush_t* pBrush = brushlist->next; pBrush != NULL && pBrush != brushlist; pBrush=pBrush->next)
{ {
pBrush->undoId = g_lastundo->id; pBrush->undoId = g_lastundo->id;
// http://github.com/mfn/GtkRadiant/commit/ee1ef98536470d5680bd9bfecc5b5c9a62ffe9ab
if ( pBrush->owner->eclass->fixedsize == 1 ) {
pBrush->owner->undoId = pBrush->undoId;
}
} }
} }