mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: image render & LabelCache::update crash
This commit is contained in:
parent
06adaaeadc
commit
a6015a326b
2 changed files with 3 additions and 3 deletions
|
|
@ -160,9 +160,9 @@ CursorShape UINode::getCursor() const {
|
|||
|
||||
glm::vec2 UINode::calcPos() const {
|
||||
if (parent) {
|
||||
return pos + parent->calcPos() + parent->getContentOffset();
|
||||
return glm::ivec2(pos + parent->calcPos() + parent->getContentOffset());
|
||||
}
|
||||
return pos;
|
||||
return glm::ivec2(pos);
|
||||
}
|
||||
|
||||
void UINode::scrolled(int value) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue