mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[godot] Fix edit rect y-offset.
This commit is contained in:
parent
5b8ed48855
commit
03eeaa17e2
@ -598,7 +598,7 @@ bool SpineNewSprite::_set(const StringName &p_property, const Variant &p_value)
|
||||
Rect2 SpineNewSprite::_edit_get_rect() const {
|
||||
if (skeleton_data_res.is_valid() && skeleton_data_res->is_skeleton_data_loaded()) {
|
||||
auto data = skeleton_data_res->get_skeleton_data();
|
||||
return Rect2(data->getX(), data->getY() - data->getHeight(), data->getWidth(), data->getHeight());
|
||||
return Rect2(data->getX(), -data->getY() - data->getHeight(), data->getWidth(), data->getHeight());
|
||||
}
|
||||
|
||||
return Node2D::_edit_get_rect();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user