@quenty/camera 9.13.0 → 10.0.0-canary.ff9fb44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [10.0.0-canary.ff9fb44.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camera@9.13.0...@quenty/camera@10.0.0-canary.ff9fb44.0) (2023-06-03)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Better Camea warnings on NaN values ([fab3d52](https://github.com/Quenty/NevermoreEngine/commit/fab3d526d9630fb45ecd7506767d97139e09780a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [9.13.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camera@9.12.0...@quenty/camera@9.13.0) (2023-05-26)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/camera",
3
- "version": "9.13.0",
3
+ "version": "10.0.0-canary.ff9fb44.0",
4
4
  "description": "Quenty's camera system for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,23 +25,23 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/acceltween": "^2.2.1",
29
- "@quenty/baseobject": "^6.2.1",
30
- "@quenty/cframeutils": "^5.2.0",
31
- "@quenty/cubicspline": "^6.2.1",
32
- "@quenty/inputobjectutils": "^4.1.0",
33
- "@quenty/loader": "^6.2.1",
34
- "@quenty/maid": "^2.5.0",
35
- "@quenty/math": "^2.3.0",
36
- "@quenty/qframe": "^6.7.0",
37
- "@quenty/servicebag": "^6.7.0",
38
- "@quenty/spring": "^6.3.0"
28
+ "@quenty/acceltween": "2.2.1",
29
+ "@quenty/baseobject": "6.2.1",
30
+ "@quenty/cframeutils": "5.2.0",
31
+ "@quenty/cubicspline": "6.2.1",
32
+ "@quenty/inputobjectutils": "4.1.0",
33
+ "@quenty/loader": "6.2.1",
34
+ "@quenty/maid": "2.5.0",
35
+ "@quenty/math": "2.3.0",
36
+ "@quenty/qframe": "6.7.0",
37
+ "@quenty/servicebag": "6.7.0",
38
+ "@quenty/spring": "6.3.0"
39
39
  },
40
40
  "devDependencies": {
41
- "@quenty/camerastoryutils": "^6.6.0"
41
+ "@quenty/camerastoryutils": "6.6.0"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"
45
45
  },
46
- "gitHead": "11058e90e51ea83d3dad6ae9abe59cc19c36b94b"
46
+ "gitHead": "ff9fb44bc6867fe6ac15ea58a744a028212c8601"
47
47
  }
@@ -62,9 +62,19 @@ end
62
62
 
63
63
  function CameraFrame:__index(index)
64
64
  if index == "CFrame" then
65
- return QFrame.toCFrame(self.QFrame) or warn("[CameraFrame] - NaN")
65
+ local result = QFrame.toCFrame(self.QFrame)
66
+ if not result then
67
+ warn("[CameraFrame.CFrame] - NaN in QFrame")
68
+ return CFrame.new()
69
+ end
70
+ return result
66
71
  elseif index == "Position" then
67
- return QFrame.toPosition(self.QFrame) or warn("[CameraFrame] - NaN")
72
+ local result = QFrame.toPosition(self.QFrame)
73
+ if not result then
74
+ warn("[CameraFrame.Position] - NaN in QFrame")
75
+ return Vector3.zero
76
+ end
77
+ return result
68
78
  elseif CameraFrame[index] then
69
79
  return CameraFrame[index]
70
80
  else
@@ -93,6 +93,8 @@ end
93
93
  @param callback function
94
94
  ]=]
95
95
  function CameraStateTweener:Finish(doNotAnimate, callback)
96
+ assert(type(callback) == "function", "Bad callback")
97
+
96
98
  self:Hide(doNotAnimate)
97
99
 
98
100
  if self._fadeBetween.HasReachedTarget then