From: TTimo Date: Fri, 8 Jan 2010 04:01:08 +0000 (+0000) Subject: fix undo bug with entities (lights) - Markus Fischer X-Git-Tag: xonotic-v0.7.0~16^2~12^2~57 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=514d4d9d10f76c5a7dbbd8b065c23dae0f58269d;p=xonotic%2Fnetradiant.git fix undo bug with entities (lights) - Markus Fischer git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@332 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- diff --git a/radiant/undo.cpp b/radiant/undo.cpp index 40bbcfb4..503c1e08 100644 --- a/radiant/undo.cpp +++ b/radiant/undo.cpp @@ -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; + // http://github.com/mfn/GtkRadiant/commit/ee1ef98536470d5680bd9bfecc5b5c9a62ffe9ab + if ( pBrush->owner->eclass->fixedsize == 1 ) { + pBrush->owner->undoId = pBrush->undoId; + } } }