@gamelearn/arcade-components 2.14.5 → 2.14.6
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.
|
@@ -128,8 +128,10 @@ function Panel(_ref) {
|
|
|
128
128
|
var defaultAnim = object.userData.defaultAnim;
|
|
129
129
|
|
|
130
130
|
if (character.type === 'character' && defaultAnim) {
|
|
131
|
+
var _character$emotion;
|
|
132
|
+
|
|
131
133
|
model.current = object;
|
|
132
|
-
var isSeated = character.emotion.includes('seated');
|
|
134
|
+
var isSeated = (_character$emotion = character.emotion) === null || _character$emotion === void 0 ? void 0 : _character$emotion.includes('seated');
|
|
133
135
|
cameraRef.current.position.setY(size.y - 1.5 * 1.3); // Retro compatible with resources without eye bone
|
|
134
136
|
|
|
135
137
|
object.traverse(function (obj) {
|