@gamelearn/arcade-components 2.18.2 → 2.18.3
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.
|
@@ -48,7 +48,7 @@ var AnimationComponent = function AnimationComponent(_ref) {
|
|
|
48
48
|
}, []);
|
|
49
49
|
(0, _react.useEffect)(function () {
|
|
50
50
|
setMounted(false);
|
|
51
|
-
}, [resource.uid, animation.url]);
|
|
51
|
+
}, [resource.uid, animation === null || animation === void 0 ? void 0 : animation.url]);
|
|
52
52
|
(0, _react.useEffect)(function () {
|
|
53
53
|
if (!mounted) {
|
|
54
54
|
var object;
|
|
@@ -58,7 +58,7 @@ var AnimationComponent = function AnimationComponent(_ref) {
|
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
|
|
61
|
-
if (object) {
|
|
61
|
+
if (object && animation) {
|
|
62
62
|
if (makeDefault) {
|
|
63
63
|
emitEvent({
|
|
64
64
|
type: 'saveAnimation',
|
|
@@ -103,7 +103,7 @@ var AnimationComponent = function AnimationComponent(_ref) {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
}, [scene, animation.url, loopTimes, emitEvent, mounted, loader, resource.uid, makeDefault, animation, resource, enableInteraction]);
|
|
106
|
+
}, [scene, animation === null || animation === void 0 ? void 0 : animation.url, loopTimes, emitEvent, mounted, loader, resource.uid, makeDefault, animation, resource, enableInteraction]);
|
|
107
107
|
return null;
|
|
108
108
|
};
|
|
109
109
|
|