@quenty/modeltransparencyeffect 8.0.0-canary.367.e9fdcbc.0 → 8.0.1-canary.433.80025dc.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,7 +3,50 @@
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
- # [8.0.0-canary.367.e9fdcbc.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@7.4.1...@quenty/modeltransparencyeffect@8.0.0-canary.367.e9fdcbc.0) (2023-06-05)
6
+ ## [8.0.1-canary.433.80025dc.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@8.0.0...@quenty/modeltransparencyeffect@8.0.1-canary.433.80025dc.0) (2023-12-14)
7
+
8
+ **Note:** Version bump only for package @quenty/modeltransparencyeffect
9
+
10
+
11
+
12
+
13
+
14
+ # [8.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@7.8.0...@quenty/modeltransparencyeffect@8.0.0) (2023-10-11)
15
+
16
+ **Note:** Version bump only for package @quenty/modeltransparencyeffect
17
+
18
+
19
+
20
+
21
+
22
+ # [7.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@7.7.0...@quenty/modeltransparencyeffect@7.8.0) (2023-09-04)
23
+
24
+ **Note:** Version bump only for package @quenty/modeltransparencyeffect
25
+
26
+
27
+
28
+
29
+
30
+ # [7.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@7.6.0...@quenty/modeltransparencyeffect@7.7.0) (2023-08-23)
31
+
32
+ **Note:** Version bump only for package @quenty/modeltransparencyeffect
33
+
34
+
35
+
36
+
37
+
38
+ # [7.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@7.5.0...@quenty/modeltransparencyeffect@7.6.0) (2023-06-18)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * TransparencyService works in stories ([ff28404](https://github.com/Quenty/NevermoreEngine/commit/ff28404961e6378d8ec7110a4b4575e835604879))
44
+
45
+
46
+
47
+
48
+
49
+ # [7.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/modeltransparencyeffect@7.4.1...@quenty/modeltransparencyeffect@7.5.0) (2023-06-05)
7
50
 
8
51
  **Note:** Version bump only for package @quenty/modeltransparencyeffect
9
52
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/modeltransparencyeffect",
3
- "version": "8.0.0-canary.367.e9fdcbc.0",
3
+ "version": "8.0.1-canary.433.80025dc.0",
4
4
  "description": "Allows a model to have transparent set locally on the client",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,14 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/acceltween": "2.2.1",
29
- "@quenty/baseobject": "6.2.1",
30
- "@quenty/loader": "6.2.1",
31
- "@quenty/steputils": "3.2.0",
32
- "@quenty/transparencyservice": "8.0.0-canary.367.e9fdcbc.0"
28
+ "@quenty/acceltween": "2.3.0",
29
+ "@quenty/baseobject": "7.0.1-canary.433.80025dc.0",
30
+ "@quenty/loader": "7.0.1-canary.433.80025dc.0",
31
+ "@quenty/steputils": "3.3.0",
32
+ "@quenty/transparencyservice": "8.0.1-canary.433.80025dc.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "e9fdcbc6ea1d46e068bf42a08b833099e9005259"
37
+ "gitHead": "80025dcd926765b502d322bb84e013b973409d8c"
38
38
  }
@@ -85,14 +85,18 @@ function ModelTransparencyEffect:FinishTransparencyAnimation(callback)
85
85
  if self._transparency.rtime == 0 then
86
86
  callback()
87
87
  else
88
- task.delay(self._transparency.rtime, function()
88
+ self._maid:GiveTask(task.delay(self._transparency.rtime, function()
89
89
  callback()
90
- end)
90
+ end))
91
91
  end
92
92
  end
93
93
 
94
94
 
95
95
  function ModelTransparencyEffect:_update()
96
+ if self._transparencyService:IsDead() then
97
+ return
98
+ end
99
+
96
100
  local transparency = self._transparency.p
97
101
 
98
102
  for part, _ in pairs(self:_getParts()) do
@@ -135,6 +139,10 @@ function ModelTransparencyEffect:_setupParts()
135
139
  end))
136
140
 
137
141
  self._maid:GiveTask(self._obj.DescendantRemoving:Connect(function(child)
142
+ if self._transparencyService:IsDead() then
143
+ return
144
+ end
145
+
138
146
  if self._parts[child] then
139
147
  self._parts[child] = nil
140
148
  self._transparencyService[self._transparencyServiceMethodName](self._transparencyService, self, child, nil)
@@ -142,6 +150,10 @@ function ModelTransparencyEffect:_setupParts()
142
150
  end))
143
151
 
144
152
  self._maid:GiveTask(function()
153
+ if self._transparencyService:IsDead() then
154
+ return
155
+ end
156
+
145
157
  for part, _ in pairs(self._parts) do
146
158
  self._transparencyService[self._transparencyServiceMethodName](self._transparencyService, self, part, nil)
147
159
  end