Skip to content

Commit

Permalink
Fix wrong length value for the initial value of vector3 (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzslab committed May 17, 2024
1 parent 7e5073d commit 8fbb8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/viser/_gui_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def add_gui_vector3(
A handle that can be used to interact with the GUI element.
"""
value = initial_value
value = cast_vector(value, 2)
value = cast_vector(value, 3)
min = cast_vector(min, 3) if min is not None else None
max = cast_vector(max, 3) if max is not None else None
id = _make_unique_id()
Expand Down

0 comments on commit 8fbb8e3

Please sign in to comment.