@quenty/adorneeutils 2.0.0 → 2.1.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
+ # [2.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/adorneeutils@2.0.0...@quenty/adorneeutils@2.1.0) (2021-09-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add attachment for bounding box in adornee utils ([e2d2f25](https://github.com/Quenty/NevermoreEngine/commit/e2d2f25027ea5acb3f9caff47e2919f9577e6318))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/adorneeutils@1.2.0...@quenty/adorneeutils@2.0.0) (2021-09-05)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/adorneeutils",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "AdorneeUtils - Generic adornee functions to make attaching to objects in Roblox easier.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,5 +27,5 @@
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "c06170ec47b0d4520c587ce2e6404d14b5dbb851"
30
+ "gitHead": "6288c63115f31544fce6663d018826e81ef01c7f"
31
31
  }
@@ -42,6 +42,8 @@ end
42
42
  function AdorneeUtils.getBoundingBox(adornee)
43
43
  if adornee:IsA("Model") then
44
44
  return adornee:GetBoundingBox()
45
+ elseif adornee:IsA("Attachment") then
46
+ return adornee.WorldCFrame, Vector3.new(0, 0, 0) -- This is a point
45
47
  else
46
48
  return AdorneeUtils.getPartCFrame(adornee), AdorneeUtils.getAlignedSize(adornee)
47
49
  end