[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35992] trunk/blender/release/scripts/ startup/bl_ui/space_view3d_toolbar.py: minor edits to view3d toolbar
Campbell Barton
ideasman42 at gmail.com
Mon Apr 4 10:47:32 CEST 2011
Revision: 35992
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35992
Author: campbellbarton
Date: 2011-04-04 08:47:31 +0000 (Mon, 04 Apr 2011)
Log Message:
-----------
minor edits to view3d toolbar
Modified Paths:
--------------
trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2011-04-04 07:42:08 UTC (rev 35991)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py 2011-04-04 08:47:31 UTC (rev 35992)
@@ -173,7 +173,7 @@
ob = context.active_object
if ob:
- mesh = context.active_object.data
+ mesh = ob.data
col = layout.column(align=True)
col.prop(mesh, "use_mirror_x")
sub = col.column()
@@ -1136,6 +1136,8 @@
def draw(self, context):
layout = self.layout
+ ob = context.active_object
+ mesh = ob.data
ipaint = context.tool_settings.image_paint
settings = context.tool_settings.image_paint
use_projection = ipaint.use_projection
@@ -1163,7 +1165,7 @@
row2 = row.row(align=False)
row2.active = (use_projection and ipaint.use_stencil_layer)
- row2.menu("VIEW3D_MT_tools_projectpaint_stencil", text=context.active_object.data.uv_texture_stencil.name)
+ row2.menu("VIEW3D_MT_tools_projectpaint_stencil", text=mesh.uv_texture_stencil.name)
row2.prop(ipaint, "invert_stencil", text="", icon='IMAGE_ALPHA')
col = layout.column()
@@ -1172,7 +1174,7 @@
row.active = (settings.brush.image_tool == 'CLONE')
row.prop(ipaint, "use_clone_layer", text="Layer")
- row.menu("VIEW3D_MT_tools_projectpaint_clone", text=context.active_object.data.uv_texture_clone.name)
+ row.menu("VIEW3D_MT_tools_projectpaint_clone", text=mesh.uv_texture_clone.name)
sub = col.column()
sub.prop(ipaint, "seam_bleed")
More information about the Bf-blender-cvs
mailing list