Skip to content

Commit f1ff3d2

Browse files
committed
Fix tests and types
Don't show in changelog
1 parent dd40a99 commit f1ff3d2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Extensions/Spine/JsExtension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ module.exports = {
516516

517517
// Apply the default skin if configured.
518518
const skinName = object.getSkinName();
519-
if (skinName) {
519+
if (skinName && this._spine) {
520520
try {
521521
this._spine.skeleton.setSkinByName(skinName);
522522
this._spine.skeleton.setSlotsToSetupPose();

Extensions/Spine/spineruntimeobject-pixi-renderer.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ namespace gdjs {
322322
}
323323

324324
setSkin(skinName: string): void {
325-
326325
if (!isSpine(this._rendererObject)) return;
327326

328327
const skeleton = this._rendererObject.skeleton;

newIDE/app/src/AssetStore/InstallAsset.spec.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,8 @@ describe('InstallAsset', () => {
897897
addSerializedExtensionsToProject(
898898
mockEventsFunctionsExtensionsState,
899899
project,
900-
[serializedExtension]
900+
[serializedExtension],
901+
[serializedExtension.name]
901902
);
902903

903904
expect(
@@ -922,7 +923,7 @@ describe('InstallAsset', () => {
922923
mockEventsFunctionsExtensionsState,
923924
project,
924925
[serializedExtension],
925-
false
926+
[]
926927
);
927928

928929
expect(

0 commit comments

Comments
 (0)