Fix error with invalid mesh index.
This commit is contained in:
parent
40c94049f1
commit
eb0c93d266
@ -601,7 +601,10 @@ ImporterApp.prototype.RegisterCanvasClick = function (canvasName)
|
||||
|
||||
ImporterApp.prototype.ScrollMeshIntoView = function (meshIndex)
|
||||
{
|
||||
menuItem = this.meshMenuItems[meshIndex];
|
||||
if (meshIndex == -1) {
|
||||
return;
|
||||
}
|
||||
var menuItem = this.meshMenuItems[meshIndex];
|
||||
menuItem.menuItemDiv.get (0).scrollIntoView ();
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user