@quenty/camerastoryutils 5.0.0 → 5.1.1-canary.276.672e37b.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,25 @@
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
+ ## [5.1.1-canary.276.672e37b.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camerastoryutils@5.1.0...@quenty/camerastoryutils@5.1.1-canary.276.672e37b.0) (2022-07-31)
7
+
8
+ **Note:** Version bump only for package @quenty/camerastoryutils
9
+
10
+
11
+
12
+
13
+
14
+ # [5.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camerastoryutils@5.0.0...@quenty/camerastoryutils@5.1.0) (2022-06-21)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * Make viewport optional ([4d68d62](https://github.com/Quenty/NevermoreEngine/commit/4d68d6218ead8f30d433760d3706a9c261679b19))
20
+
21
+
22
+
23
+
24
+
6
25
  # [5.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/camerastoryutils@4.3.0...@quenty/camerastoryutils@5.0.0) (2022-05-21)
7
26
 
8
27
  **Note:** Version bump only for package @quenty/camerastoryutils
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/camerastoryutils",
3
- "version": "5.0.0",
3
+ "version": "5.1.1-canary.276.672e37b.0",
4
4
  "description": "CameraStoryUtils - utility functions for 3D viewport hoarcekat stories.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,13 +26,13 @@
26
26
  "Quenty"
27
27
  ],
28
28
  "dependencies": {
29
- "@quenty/insertserviceutils": "^5.0.0",
30
- "@quenty/loader": "^5.0.0",
31
- "@quenty/math": "^2.2.0",
32
- "@quenty/promise": "^5.0.0"
29
+ "@quenty/insertserviceutils": "5.0.1-canary.276.672e37b.0",
30
+ "@quenty/loader": "5.0.0",
31
+ "@quenty/math": "2.2.0",
32
+ "@quenty/promise": "5.0.1-canary.276.672e37b.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "9f7eaea7543c33c89d2e32c38491b13f9271f4f7"
37
+ "gitHead": "672e37b9bbb8b2d4c4c6c69ed2647335be0bc469"
38
38
  }
@@ -86,13 +86,15 @@ function CameraStoryUtils.promiseCrate(maid, viewportFrame, properties)
86
86
  end
87
87
  end
88
88
 
89
- crate.Parent = viewportFrame
90
-
91
- local camera = viewportFrame.CurrentCamera
92
- if camera then
93
- local cameraCFrame = camera.CFrame
94
- local cframe = CFrame.new(cameraCFrame.Position + cameraCFrame.lookVector*25)
95
- crate:SetPrimaryPartCFrame(cframe)
89
+ if viewportFrame then
90
+ crate.Parent = viewportFrame
91
+
92
+ local camera = viewportFrame.CurrentCamera
93
+ if camera then
94
+ local cameraCFrame = camera.CFrame
95
+ local cframe = CFrame.new(cameraCFrame.Position + cameraCFrame.lookVector*25)
96
+ crate:SetPrimaryPartCFrame(cframe)
97
+ end
96
98
  end
97
99
 
98
100
  return Promise.resolved(crate)