mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-20 11:55:33 +00:00
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:
parent
4f403afe9a
commit
1099c2d80c
4 changed files with 34 additions and 34 deletions
|
|
@ -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 = "";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue