mirror of
https://github.com/4ian/GDevelop.git
synced 2026-10-12 02:01:17 +00:00
Fix tests and types
Don't show in changelog
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user