Bug fixes #26236 #26237
authorTon Roosendaal <ton@blender.org>
Tue, 1 Mar 2011 12:25:55 +0000 (12:25 +0000)
committerTon Roosendaal <ton@blender.org>
Tue, 1 Mar 2011 12:25:55 +0000 (12:25 +0000)
commit5bf1bf645c8a0415c67b040821d6389618ca099a
tree59ebfcf4cac79268b2ee2685d7595f26f0f2c22e
parent1c0b9dfdf1f9ccae76e9c90c70d4a0ebfcd94f05
Bug fixes #26236 #26237

- Linking logic buttons had draw glitch, caused by reading
  data from free'd buttons
- Doing an undo with mouse-over Curve Widget caused crash or
  corruption.

Both related to code that tries to keep the "active" button in
memory. On each redraw of UI, buttons are re-created, which makes
it all tricky... hope we're safer now.

Also: added back undo pushes on adding links in logic editor.
source/blender/editors/interface/interface.c
source/blender/editors/interface/interface_handlers.c