update InlineFrame::act
This commit is contained in:
parent
203862e206
commit
fc68d6ceca
@ -36,13 +36,12 @@ 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));
|
||||
}
|
||||
Container::act(delta);
|
||||
}
|
||||
|
||||
void InlineFrame::setSize(glm::vec2 size) {
|
||||
Container::setSize(size);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user