Images: make it harder to accidentally undo image texture painting changes
authorBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 17 May 2019 13:10:34 +0000 (15:10 +0200)
committerBrecht Van Lommel <brechtvanlommel@gmail.com>
Fri, 17 May 2019 15:59:26 +0000 (17:59 +0200)
commit2a31e0c812c7dfa1645fc1c0692016fa1165b393
tree82cb3213a081b6fffcc8b655c25176ad7d6ceb52
parente8238e1123d9bab7210b922b4fb2d8f395bf70ef
Images: make it harder to accidentally undo image texture painting changes

Editing properties like generated X/Y size clears any changes to the image,
and it's not obvious that this is destructive. Now if the image has been
painted on or baked to, buttons to Save or Discard changes will appear and
editing the properties will be disabled until doing one of these.
release/scripts/startup/bl_ui/space_image.py
source/blender/editors/space_image/image_buttons.c
source/blender/editors/space_image/image_ops.c