From c9ab68e6ec3b81d68f4ab7fc41edfabea130d0c9 Mon Sep 17 00:00:00 2001
From: mifth <paulgeraskin@gmail.com>
Date: Tue, 17 Dec 2013 14:25:19 +0400
Subject: [PATCH] [UVUtility] other fixes of IdeasMan_42 suggestions

---
 uv_utility.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/uv_utility.py b/uv_utility.py
index 6f5f3b9e..767017ab 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:
-- 
GitLab