[Bf-extensions-cvs] [c9ab68e] master: [UVUtility] other fixes of IdeasMan_42 suggestions
mifth
noreply at git.blender.org
Tue Dec 17 11:25:22 CET 2013
Commit: c9ab68e6ec3b81d68f4ab7fc41edfabea130d0c9
Author: mifth
Date: Tue Dec 17 14:25:19 2013 +0400
http://developer.blender.org/rBACc9ab68e6ec3b81d68f4ab7fc41edfabea130d0c9
[UVUtility] other fixes of IdeasMan_42 suggestions
===================================================================
M uv_utility.py
===================================================================
diff --git a/uv_utility.py b/uv_utility.py
index 6f5f3b9..767017a 100644
--- a/uv_utility.py
+++ b/uv_utility.py
@@ -141,7 +141,7 @@ class UV_IC_SelectIndex(UV_IC_Panel, Operator):
indexNew = scene.UVTexIndex - 1
if theObj.type == 'MESH':
- if len(meshData.uv_textures) > indexNew and len(meshData.uv_textures) > 0:
+ if len(meshData.uv_textures) > indexNew and meshData.uv_textures:
meshData.uv_textures.active_index = indexNew
if scene.UVTexRenderActive:
@@ -162,7 +162,7 @@ class UV_IC_SelectName(UV_IC_Panel, Operator):
uvName = scene.UVTexGetName
if theObj.type == 'MESH':
- if len(meshData.uv_textures) > 0:
+ if meshData.uv_textures:
uvToGet = meshData.uv_textures.get(uvName)
if uvToGet is not None:
@@ -185,7 +185,7 @@ class UV_IC_RemoveActiveUV(UV_IC_Panel, Operator):
meshData = theObj.data
if theObj.type == 'MESH':
- if len(meshData.uv_textures) > 0:
+ if meshData.uv_textures:
activeIndex = meshData.uv_textures.active_index
if len(meshData.uv_textures) > activeIndex:
More information about the Bf-extensions-cvs
mailing list