[Gtkradiant] [Bug 621] Two entities created on undo of misc_model (possibly others)

gtkradiant@zerowing.idsoftware.com gtkradiant@zerowing.idsoftware.com
Tue, 26 Nov 2002 15:41:52 -0600


------- Additional Comments From rr2do2@q3f.com  2002-11-26 15:41 -------
This is caused by a problem with Undo_BrushInUndo and Undo_EntityInUndo. They 
do a pointer compare on the brush/ent it gets called with and the members of 
the undo list. However, the objects get cloned into the lists instead of a 
pointer getting passed on (which makes sense, because of the deletes). Entities 
have a unique entityId, which can be used to keep track instead. Brushes have 
unique numberID, but we can't use that right now as BrushFullClone increases 
that number as well so the clone will have a different number.