mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
Adds sanity check on UINavigation to avoid crashes if there are no pages in the stack.
Removes button to fill import terrain images temporarily to contend with limitations in asset creation workflow Adds sanity check to saving terrain material that obligates setting of diffuse and detail maps so everything displays and blends properly
This commit is contained in:
parent
a73695a01a
commit
f4ca9c5202
3 changed files with 12 additions and 3 deletions
|
|
@ -75,7 +75,8 @@ function UINavigation::pushPage(%this, %newPage, %callback)
|
|||
}
|
||||
|
||||
//don't re-add pages
|
||||
if(%this.pageStack.getIndexFromKey(%newPage) != -1)
|
||||
if(%this.pageStack.getPageCount() != 0 &&
|
||||
%this.pageStack.getIndexFromKey(%newPage) != -1)
|
||||
return;
|
||||
|
||||
%canChange = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue