From 05e2e92611970689cd224715f594b817c69beae0 Mon Sep 17 00:00:00 2001 From: Toni Alatalo Date: Thu, 6 May 2010 23:47:25 +0000 Subject: [PATCH] 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! --- release/scripts/ui/space_image.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()