mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
update InlineFrame::act
This commit is contained in:
parent
203862e206
commit
fc68d6ceca
1 changed files with 4 additions and 5 deletions
|
|
@ -36,12 +36,11 @@ void InlineFrame::setDocument(const std::shared_ptr<UiDocument>& document) {
|
|||
}
|
||||
|
||||
void InlineFrame::act(float delta) {
|
||||
Container::act(delta);
|
||||
if (document || src.empty()) {
|
||||
return;
|
||||
if (document == nullptr && !src.empty()) {
|
||||
const auto& assets = *gui.getEngine().getAssets();
|
||||
setDocument(assets.getShared<UiDocument>(src));
|
||||
}
|
||||
const auto& assets = *gui.getEngine().getAssets();
|
||||
setDocument(assets.getShared<UiDocument>(src));
|
||||
Container::act(delta);
|
||||
}
|
||||
|
||||
void InlineFrame::setSize(glm::vec2 size) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue