Fix #28780: Undo while painting image sequences issue
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 3 Oct 2011 11:04:05 +0000 (11:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 3 Oct 2011 11:04:05 +0000 (11:04 +0000)
commit7fec67ab40cac18aaa44420216603ddc2b623caa
tree7bfa73dd23880d31f02fc48627aa33f8ea6b5c8a
parent354670e6ed5bcb36a02706b3c97078dc8f4d0b8d
Fix #28780: Undo while painting image sequences issue

- Store imbuf file path in UndoImageTile structure, so imbuf can be verified
  before applying titles on it.
- If current image's imbuf file path isn't equal to file path stored in
  undo block, search for imbuf in ima->ibufs.

  Probably it can be optimized, but storing all settings which defines
  needed imbuf (image source type, offset, image file name, current
  scene frame and so messes up undo code and requires deeper changes
  which probably better not to start on bcon4).
source/blender/editors/sculpt_paint/paint_image.c