Skip to content

Commit

Permalink
Hopefully fix cone orientation setting
Browse files Browse the repository at this point in the history
  • Loading branch information
tyrylu committed Apr 8, 2021
1 parent ced5a54 commit 80cdaa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyfmodex/channel_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def cone_orientation(self):
@cone_orientation.setter
def cone_orientation(self, ori):
vec = VECTOR.from_list(ori)
self._call_specific("Set3DConeOrientation", vec)
self._call_specific("Set3DConeOrientation", byref(vec))

@property
def cone_settings(self):
Expand Down
1 change: 1 addition & 0 deletions tests/test_channel_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def test_occlusion(channel_group):
assert channel_group.direct_occlusion == 0.0
assert channel_group.reverb_occlusion == 0.0
channel_group.reverb_occlusion = 0.5
channel_group.system_object.update()
assert channel_group.reverb_occlusion == 0.5

def test_spread(channel_group):
Expand Down

0 comments on commit 80cdaa9

Please sign in to comment.