Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions DUV_UVTrim.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ def uv_trim(context):
print(atlas)
#check if horizontal or vertical, and make trimsheet

if context.scene.trim_index > ( len(atlas) - 1.0 ):
context.scene.trim_index = 0.0
if context.scene.trim_index > ( len(atlas) - 1 ):
context.scene.trim_index = 0


#MAKE DUPLICATE AND SPLIT EDGES
Expand Down Expand Up @@ -364,8 +364,8 @@ def uv_cap(context):
print("atlas:")
print(atlas)

if context.scene.cap_index > ( len(atlas) - 1.0 ):
context.scene.cap_index = 0.0
if context.scene.cap_index > ( len(atlas) - 1 ):
context.scene.cap_index = 0

#check if horizontal or vertical, and make trimsheet

Expand Down