]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
fix undo bug with entities (lights) - Markus Fischer
authorTTimo <ttimo@ttimo.net>
Fri, 8 Jan 2010 04:01:08 +0000 (04:01 +0000)
committerTTimo <ttimo@ttimo.net>
Fri, 8 Jan 2010 04:01:08 +0000 (04:01 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@332 8a3a26a2-13c4-0310-b231-cf6edde360e5

radiant/undo.cpp

index 40bbcfb4513fbfda5e2faee6f4870fa74be04c81..503c1e087730daf98e7939d1de222bbd2149519d 100644 (file)
@@ -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;
+               }
        }
 }