mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-29 00:05:50 +00:00
Clear skel cache in animation editor
This commit is contained in:
parent
236096683a
commit
b71c21a0b3
1 changed files with 2 additions and 0 deletions
|
@ -1415,6 +1415,7 @@ void AnimationEditor::load()
|
||||||
std::string file = dsq->getUserInputString("Enter anim file to load:");
|
std::string file = dsq->getUserInputString("Enter anim file to load:");
|
||||||
if (file.empty()) return;
|
if (file.empty()) return;
|
||||||
this->editingFile = file;
|
this->editingFile = file;
|
||||||
|
SkeletalSprite::clearCache();
|
||||||
loadFile();
|
loadFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1426,6 +1427,7 @@ void AnimationEditor::loadSkin()
|
||||||
if (file.empty()) return;
|
if (file.empty()) return;
|
||||||
//this->editingFile = file;
|
//this->editingFile = file;
|
||||||
//loadFile();
|
//loadFile();
|
||||||
|
SkeletalSprite::clearCache();
|
||||||
editSprite->loadSkin(file);
|
editSprite->loadSkin(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue