Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-04-04 12:47:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-04-04 12:47:31 +0400
commitfad71850e4e434485bf77686974a37999bc6b86a (patch)
tree526451cf45a6a43a84788863c6da71ec9dda4436 /release
parent57d020f061a9f8bdd319f382657572b8feb8a38a (diff)
minor edits to view3d toolbar
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index e70395efa84..838d11ffbaf 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -173,7 +173,7 @@ class VIEW3D_PT_tools_meshedit_options(View3DPanel, bpy.types.Panel):
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 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel, bpy.types.Panel):
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 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel, bpy.types.Panel):
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 @@ class VIEW3D_PT_tools_projectpaint(View3DPanel, bpy.types.Panel):
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")