diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-17 16:10:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-05-17 18:59:26 +0300 |
commit | 2a31e0c812c7dfa1645fc1c0692016fa1165b393 (patch) | |
tree | 82cb3213a081b6fffcc8b655c25176ad7d6ceb52 /release/scripts/startup/bl_ui/space_image.py | |
parent | e8238e1123d9bab7210b922b4fb2d8f395bf70ef (diff) |
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.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_image.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_image.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 8060609791a..5ea3545dbc2 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -241,6 +241,7 @@ class IMAGE_MT_image(Menu): layout.separator() if ima.packed_file: layout.operator("image.pack", text="Repack") + layout.operator("image.unpack", text="Unpack") else: layout.operator("image.pack", text="Pack") |