diff options
author | Toni Alatalo <antont@kyperjokki.fi> | 2010-05-07 03:47:25 +0400 |
---|---|---|
committer | Toni Alatalo <antont@kyperjokki.fi> | 2010-05-07 03:47:25 +0400 |
commit | 05e2e92611970689cd224715f594b817c69beae0 (patch) | |
tree | 972272dad5ee99e80dcd763510a93acf28007b9e /release | |
parent | b28c6d3c149295a367bb8e95df2888bb61db99ba (diff) |
Add the option to show also the UVs of other selected objects in image
space / uv edit. The code was already there, and the option as a rna
bool, but no ui to set it. Matt figured that the View menu in image
space next to other uv stuff, which only shows when UVs are edited, is
the right place.
Works so that when entering editmode for an object to edit UVs, when
have also other objects selected and this option on, also the UVs of
those other objects are shown in the image view.
Liquidape asked this on IRC, and we thought the feat doesn't exist, so I
looked out of curiosity in the code as was thinking it would be easy to
add. Was surprised to find it there already :)
First time that did anything with 2.5, was sure fun enough to search
thru the code to figure out how things work. Adding this ui thing proved
to be exactly as trivial and nice as it should, and the things under the
hood seemed nice, yay!
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_image.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py index dd07f7b66f8..be7370302ec 100644 --- a/release/scripts/ui/space_image.py +++ b/release/scripts/ui/space_image.py @@ -29,7 +29,7 @@ class IMAGE_MT_view(bpy.types.Menu): layout = self.layout sima = context.space_data - # uv = sima.uv_editor + uv = sima.uv_editor toolsettings = context.tool_settings show_uvedit = sima.show_uvedit @@ -42,6 +42,7 @@ class IMAGE_MT_view(bpy.types.Menu): layout.prop(sima, "update_automatically") if show_uvedit: layout.prop(toolsettings, "uv_local_view") # Numpad / + layout.prop(uv, "draw_other_objects") layout.separator() |