Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commitdc264ba3b0c3323ca5f5c2f3e602d531ab759717 (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-11-28 16:08:46 +0200
Committer
 Syndamia <kamen@syndamia.com>
2022-11-28 16:08:46 +0200
Files24c9d12dfeebc065bffb0e0b9957f37b020e9248
uni-projects-dc264ba3b0c3323ca5f5c2f3e602d531ab759717.tar
uni-projects-dc264ba3b0c3323ca5f5c2f3e602d531ab759717.tar.gz
uni-projects-dc264ba3b0c3323ca5f5c2f3e602d531ab759717.zip
Parent7da36542204ac7c5a99fbc9f111af450044fea25 (diff)
[OKG/HWK2] Fixed end time not being properly calculated
1 files changed, 4 insertions, 4 deletions
-rw-r--r--Year 2/Computer Graphics Fundamentals/Homework 2/mannequin.html8
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],