[Bf-extensions-cvs] [ba5f4d3] master: updated to new api
Luca Carella
noreply at git.blender.org
Thu Dec 25 18:56:48 CET 2014
Commit: ba5f4d3ca71f386de2b3fe5fe1c5bfd79e8df121
Author: Luca Carella
Date: Thu Dec 25 18:15:06 2014 +0100
Branches: master
https://developer.blender.org/rBACba5f4d3ca71f386de2b3fe5fe1c5bfd79e8df121
updated to new api
===================================================================
M uv_align_distribute.py
===================================================================
diff --git a/uv_align_distribute.py b/uv_align_distribute.py
index 6e89b4a..cf7ff2c 100644
--- a/uv_align_distribute.py
+++ b/uv_align_distribute.py
@@ -19,8 +19,8 @@
bl_info = {
"name": "UV Align/Distribute",
"author": "Rebellion (Luca Carella)",
- "version": (1, 1),
- "blender": (2, 7, 1),
+ "version": (1, 2),
+ "blender": (2, 7, 3),
"location": "UV/Image editor > Tool Panel, UV/Image editor UVs > menu",
"description": "Set of tools to help UV alignment\distribution",
"warning": "",
@@ -57,6 +57,7 @@ def InitBMesh():
global bm
global uvlayer
bm = bmesh.from_edit_mesh(bpy.context.edit_object.data)
+ bm.faces.ensure_lookup_table()
uvlayer = bm.loops.layers.uv.active
@@ -927,9 +928,9 @@ class MatchIsland(OperatorTemplate):
bl_label = "Match Island"
bl_options = {'REGISTER', 'UNDO'}
- thresold = FloatProperty(
- name="Thresold",
- description="Thresold for island matching",
+ threshold = FloatProperty(
+ name="Threshold",
+ description="Threshold for island matching",
default=0.1,
min=0,
max=1,
@@ -950,7 +951,7 @@ class MatchIsland(OperatorTemplate):
selectedIslands.remove(activeIsland)
for island in selectedIslands:
- matchIsland(activeIsland, self.thresold, island)
+ matchIsland(activeIsland, self.threshold, island)
update()
return{'FINISHED'}
@@ -1064,4 +1065,3 @@ def unregister():
if __name__ == "__main__":
register()
-
More information about the Bf-extensions-cvs
mailing list