Fix tests and types

Don't show in changelog
This commit is contained in:
Florian Rival
2026-02-10 16:19:52 +01:00
parent dd40a997d9
commit f1ff3d2e69
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -516,7 +516,7 @@ module.exports = {
// Apply the default skin if configured.
const skinName = object.getSkinName();
if (skinName) {
if (skinName && this._spine) {
try {
this._spine.skeleton.setSkinByName(skinName);
this._spine.skeleton.setSlotsToSetupPose();
@@ -322,7 +322,6 @@ namespace gdjs {
}
setSkin(skinName: string): void {
if (!isSpine(this._rendererObject)) return;
const skeleton = this._rendererObject.skeleton;
@@ -897,7 +897,8 @@ describe('InstallAsset', () => {
addSerializedExtensionsToProject(
mockEventsFunctionsExtensionsState,
project,
[serializedExtension]
[serializedExtension],
[serializedExtension.name]
);
expect(
@@ -922,7 +923,7 @@ describe('InstallAsset', () => {
mockEventsFunctionsExtensionsState,
project,
[serializedExtension],
false
[]
);
expect(