Skip to content

Commit b511499

Browse files
committed
Enhanche shortest and fastest buttons
When all the way to the bottom the next action is probably up.
1 parent 42909a0 commit b511499

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fun_ui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def execute(self, context):
241241
continue
242242
if frame < scene.frame_current:
243243
last = {"frame":frame, "value":value}
244-
direction = "up" if last["value"] < beforelast["value"] else "down"
244+
direction = "up" if last["value"] < beforelast["value"] or last["value"] == 0 else "down"
245245
interval = fun_script.frame_to_ms(scene.frame_current) - fun_script.frame_to_ms(last["frame"])
246246
mindist = int(fun_script.launch_distance(settings.script_min_speed, interval) * (100.0/settings.script_range))
247247
maxdist = int(fun_script.launch_distance(settings.script_max_speed, interval) * (100.0/settings.script_range))

0 commit comments

Comments
 (0)