[Bf-blender-cvs] [6347d81] ui-preview-buttons: remove redundant int

Campbell Barton noreply at git.blender.org
Tue May 5 15:27:26 CEST 2015


Commit: 6347d810dc19b4d5fcbf37ca359ea97d22317cde
Author: Campbell Barton
Date:   Tue May 5 23:27:11 2015 +1000
Branches: ui-preview-buttons
https://developer.blender.org/rB6347d810dc19b4d5fcbf37ca359ea97d22317cde

remove redundant int

===================================================================

M	release/scripts/templates_py/ui_previews.py

===================================================================

diff --git a/release/scripts/templates_py/ui_previews.py b/release/scripts/templates_py/ui_previews.py
index 4549fc0..b08ed7e 100644
--- a/release/scripts/templates_py/ui_previews.py
+++ b/release/scripts/templates_py/ui_previews.py
@@ -50,7 +50,7 @@ def enum_previews_from_directory_items(self, context):
             filepath = os.path.join(directory, img_name)
             thumb = pcoll.load(filepath, filepath, 'IMAGE')
             # enum item: (identifier, name, description, icon, number)
-            enum_items.append((img_name, img_name, img_name, int(thumb.icon_id), idx))
+            enum_items.append((img_name, img_name, img_name, thumb.icon_id, idx))
 
     pcoll.my_previews = enum_items
     pcoll.my_previews_dir = directory




More information about the Bf-blender-cvs mailing list