Skip to content

Commit

Permalink
Merge branch '4.1' into 4.2-beta
Browse files Browse the repository at this point in the history
# Conflicts:
#	spine-ts/package-lock.json
#	spine-ts/package.json
#	spine-ts/spine-canvas/package.json
#	spine-ts/spine-core/package.json
#	spine-ts/spine-phaser/package.json
#	spine-ts/spine-pixi/package.json
#	spine-ts/spine-player/package.json
#	spine-ts/spine-threejs/package.json
#	spine-ts/spine-webgl/package.json
  • Loading branch information
badlogic committed Jan 16, 2024
2 parents bd1acdc + 5dbdcb3 commit f68f543
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 21 deletions.
2 changes: 2 additions & 0 deletions spine-godot/spine_godot/SpineBoneNode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ void SpineBoneNode::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_debug_color"), &SpineBoneNode::set_debug_color);
ClassDB::bind_method(D_METHOD("get_debug_color"), &SpineBoneNode::get_debug_color);
ClassDB::bind_method(D_METHOD("_on_world_transforms_changed", "spine_sprite"), &SpineBoneNode::on_world_transforms_changed);
ClassDB::bind_method(D_METHOD("find_bone"), &SpineBoneNode::find_bone);
ClassDB::bind_method(D_METHOD("find_sprite"), &SpineBoneNode::find_parent_sprite);

ADD_PROPERTY(PropertyInfo(Variant::INT, "bone_mode", PROPERTY_HINT_ENUM, "Follow,Drive"), "set_bone_mode", "get_bone_mode");
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "enabled"), "set_enabled", "get_enabled");
Expand Down
7 changes: 5 additions & 2 deletions spine-godot/spine_godot/SpineBoneNode.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#pragma once

#include "SpineCommon.h"
#include "SpineSkeleton.h"
#include "SpineSprite.h"
#include "scene/2d/node_2d.h"

Expand All @@ -51,8 +52,6 @@ class SpineBoneNode : public Node2D {
void on_world_transforms_changed(const Variant &_sprite);
void update_transform(SpineSprite *sprite);
void init_transform(SpineSprite *sprite);
SpineSprite *find_parent_sprite() const;
Ref<SpineBone> find_bone() const;
void draw();

public:
Expand All @@ -73,4 +72,8 @@ class SpineBoneNode : public Node2D {
void set_debug_color(Color _color);

Color get_debug_color();

SpineSprite *find_parent_sprite() const;

Ref<SpineBone> find_bone() const;
};
2 changes: 1 addition & 1 deletion spine-ts/spine-phaser/src/SpinePlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class SpineAtlasFile extends Phaser.Loader.MultiFile {
}
}

let basePath = file.src.match(/^.*\//);
let basePath = file.src.match(/^.*\//) ?? "";
for (var i = 0; i < textures.length; i++) {
var url = basePath + textures[i];
var key = file.key + "!" + textures[i];
Expand Down
33 changes: 15 additions & 18 deletions spine-ts/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"noImplicitAny": true,
"preserveConstEnums": true,
"inlineSourceMap": true,
"esModuleInterop": true,
"lib": [
"DOM",
"ES2015",
"ScriptHost"
],
"declaration": true,
"composite": true,
"moduleResolution": "node",
"strict": true,
}
}
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"noImplicitAny": true,
"preserveConstEnums": true,
"inlineSourceMap": true,
"esModuleInterop": true,
"lib": ["DOM", "ES2015", "ScriptHost"],
"declaration": true,
"composite": true,
"moduleResolution": "node",
"skipLibCheck": true,
"strict": true
}
}

0 comments on commit f68f543

Please sign in to comment.