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!
This commit is contained in:
Toni Alatalo 2010-05-06 23:47:25 +00:00
parent b28c6d3c14
commit 05e2e92611

@ -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()