Skip to content

Commit

Permalink
Fixing Sentry.io OPENSHOT-5J0R: float() argument must be a string or …
Browse files Browse the repository at this point in the history
…a real number, not 'MenuVolume'
  • Loading branch information
jonoomph committed Jun 23, 2024
1 parent 763b685 commit 8e9bb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows/views/timeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2305,7 +2305,7 @@ def Volume_Triggered(self, action, clip_ids, position="Entire Clip"):
MenuVolume.LEVEL_0
]:
# Add keyframes
p = openshot.Point(start_animation, float(action) / 100.0, openshot.BEZIER)
p = openshot.Point(start_animation, float(action.value) / 100.0, openshot.BEZIER)
p_object = json.loads(p.Json())
self.AddPoint(clip.data['volume'], p_object)

Expand Down

0 comments on commit 8e9bb7c

Please sign in to comment.