[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28632] trunk/blender/release/scripts/ui/ space_image.py: Add the option to show also the UVs of other selected objects in image
Toni Alatalo
antont at kyperjokki.fi
Fri May 7 01:47:26 CEST 2010
Revision: 28632
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28632
Author: antont
Date: 2010-05-07 01:47:25 +0200 (Fri, 07 May 2010)
Log Message:
-----------
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!
Modified Paths:
--------------
trunk/blender/release/scripts/ui/space_image.py
Modified: trunk/blender/release/scripts/ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/ui/space_image.py 2010-05-06 22:07:03 UTC (rev 28631)
+++ trunk/blender/release/scripts/ui/space_image.py 2010-05-06 23:47:25 UTC (rev 28632)
@@ -29,7 +29,7 @@
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 @@
layout.prop(sima, "update_automatically")
if show_uvedit:
layout.prop(toolsettings, "uv_local_view") # Numpad /
+ layout.prop(uv, "draw_other_objects")
layout.separator()
More information about the Bf-blender-cvs
mailing list