mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Formatting
This commit is contained in:
parent
7b98021228
commit
3acbc2ab7a
@ -61,8 +61,7 @@ Ref<SpineSlotData> SpineSlot::get_data() {
|
||||
SPINE_CHECK(get_spine_object(), nullptr)
|
||||
if (_data.is_valid()) {
|
||||
return _data;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
auto &slot_data = get_spine_object()->getData();
|
||||
Ref<SpineSlotData> slot_data_ref(memnew(SpineSlotData));
|
||||
slot_data_ref->set_spine_object(*get_spine_owner()->get_skeleton_data_res(), &slot_data);
|
||||
@ -75,8 +74,7 @@ Ref<SpineBone> SpineSlot::get_bone() {
|
||||
SPINE_CHECK(get_spine_object(), nullptr)
|
||||
if (_bone.is_valid()) {
|
||||
return _data;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
auto &bone = get_spine_object()->getBone();
|
||||
Ref<SpineBone> bone_ref(memnew(SpineBone));
|
||||
bone_ref->set_spine_object(get_spine_owner(), &bone);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user