mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[godot] Fix const assignments in SpineAtlasResource::copy_from()
This commit is contained in:
parent
b70aa0c9fb
commit
b3e8821966
@ -239,9 +239,8 @@ Error SpineAtlasResource::copy_from(const Ref<Resource> &p_resource) {
|
||||
const Ref<SpineAtlasResource> &spineAtlas = static_cast<const Ref<SpineAtlasResource> &>(p_resource);
|
||||
this->clear();
|
||||
this->atlas = spineAtlas->atlas;
|
||||
spineAtlas->atlas = nullptr;
|
||||
this->texture_loader = spineAtlas->texture_loader;
|
||||
spineAtlas->texture_loader = nullptr;
|
||||
spineAtlas->clear_native_data();
|
||||
|
||||
this->source_path = spineAtlas->source_path;
|
||||
this->atlas_data = spineAtlas->atlas_data;
|
||||
|
||||
@ -76,6 +76,11 @@ public:
|
||||
Array get_textures();
|
||||
|
||||
Array get_normal_maps();
|
||||
|
||||
void clear_native_data() {
|
||||
this->atlas = nullptr;
|
||||
this->texture_loader = nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
class SpineAtlasResourceFormatLoader : public ResourceFormatLoader {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user