Fix callbacks from PopupMenu

Since 4.0 release, the TorqueScript doesn't keep local vars in stack
when calling `eval()`.
This commit is contained in:
bank 2023-04-21 20:48:01 +03:00
parent 4f403afe9a
commit 1099c2d80c
No known key found for this signature in database
GPG key ID: 3CEA4264C6F57E51
4 changed files with 34 additions and 34 deletions

View file

@ -2332,8 +2332,8 @@ function MaterialEditorMapThumbnail::onRightClick( %this )
superClass = "MenuBuilder";
isPopup = true;
item[ 0 ] = "Open File" TAB "" TAB "openFile( %this.filePath );";
item[ 1 ] = "Open Folder" TAB "" TAB "openFolder( filePath( %this.filePath ) );";
item[ 0 ] = "Open File" TAB "" TAB "openFile( MaterialEditorMapThumbnailPopup.filePath );";
item[ 1 ] = "Open Folder" TAB "" TAB "openFolder( filePath( MaterialEditorMapThumbnailPopup.filePath ) );";
filePath = "";
};