Skip to content

Commit 3ad93c7

Browse files
committed
keyframe_scaler: Rename to _scale_x_value
1 parent 24f9d3f commit 3ad93c7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/classes/keyframe_scaler.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
"""
22
@file
33
@brief Process project data, scaling keyframe X coordinates by the given factor
4-
@author Noah Figg <[email protected]>
54
@author Jonathan Thomas <[email protected]>
6-
@author Olivier Girard <[email protected]>
75
@author FeRD (Frank Dana) <[email protected]>
86
97
@section LICENSE
@@ -36,7 +34,7 @@ class KeyframeScaler:
3634
multiplied by the scaling factor, except X=1 (because the first
3735
frame never changes)"""
3836

39-
def _scale_value(self, value: float) -> int:
37+
def _scale_x_value(self, value: float) -> int:
4038
"""Scale value by some factor, except for 1 (leave that alone)"""
4139
if value == 1.0:
4240
return value
@@ -55,7 +53,7 @@ def _update_prop(self, prop: dict):
5553
for k in keyframes:
5654
# Scale the X coordinate (frame #) by the stored factor
5755
[point["co"].update({
58-
"X": self._scale_value(point["co"].get("X", 0.0))
56+
"X": self._scale_x_value(point["co"].get("X", 0.0))
5957
})
6058
for point in k if "co" in point]
6159

0 commit comments

Comments
 (0)