diff options
1 files changed, 4 insertions, 4 deletions
| -rw-r--r-- | Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html | 8 |
diff --git a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html index 456620a..3ce89cb 100644 --- a/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html +++ b/Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html @@ -175,8 +175,8 @@ for (var instruction of animationData[time]) {
if (instruction[1].constructor === Array) {
executeBacklog.push({
- start : time,
- end : time + instruction[0],
+ start : Number(time),
+ end : Number(time) + instruction[0],
iscamera : true,
camposold : vecToArr(camera.position),
@@ -188,8 +188,8 @@ }
else {
executeBacklog.push({
- start : time,
- end : time + instruction[0],
+ start : Number(time),
+ end : Number(time) + instruction[0],
iscamera : false,
mannequin : instruction[1],
|
