Skip to content

Commit e85f10c

Browse files
committed
fix linting
1 parent c6ce05c commit e85f10c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

addon/utils/live_mode.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ def handle_position_jump(cls, target_positions):
129129
for servo_id, position, step in target_positions:
130130
diff = abs(position - cls._last_positions[servo_id])
131131
steps = math.ceil(diff / step)
132-
133-
if steps > abs_steps:
134-
abs_steps = steps
132+
abs_steps = max(abs_steps, steps)
135133

136134
window_manager = bpy.context.window_manager
137135
window_manager.progress_begin(0, abs_steps)

0 commit comments

Comments
 (0)