Skip to content

Commit 8e9bb7c

Browse files
committed
Fixing Sentry.io OPENSHOT-5J0R: float() argument must be a string or a real number, not 'MenuVolume'
1 parent 763b685 commit 8e9bb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/windows/views/timeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ def Volume_Triggered(self, action, clip_ids, position="Entire Clip"):
23052305
MenuVolume.LEVEL_0
23062306
]:
23072307
# Add keyframes
2308-
p = openshot.Point(start_animation, float(action) / 100.0, openshot.BEZIER)
2308+
p = openshot.Point(start_animation, float(action.value) / 100.0, openshot.BEZIER)
23092309
p_object = json.loads(p.Json())
23102310
self.AddPoint(clip.data['volume'], p_object)
23112311

0 commit comments

Comments
 (0)