mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-13 01:10:45 +00:00
Merge pull request #484 from Azaezel/alpha40/matEditorSaveFix
form steve yorkshire: mat editor save extension fix
This commit is contained in:
commit
793c4c3701
1 changed files with 4 additions and 1 deletions
|
|
@ -2551,7 +2551,7 @@ function MaterialEditorGui::saveCompositeMap(%this)
|
|||
%saveAs = "";
|
||||
%dlg = new SaveFileDialog()
|
||||
{
|
||||
Filters = "png";
|
||||
Filters = "PNG File (*.png)|*.png";
|
||||
DefaultPath = EditorSettings.value("data/");
|
||||
ChangePath = false;
|
||||
OverwritePrompt = true;
|
||||
|
|
@ -2565,6 +2565,9 @@ function MaterialEditorGui::saveCompositeMap(%this)
|
|||
%saveAs = %dlg.FileName;
|
||||
}
|
||||
|
||||
if( fileExt( %saveAs ) !$= ".png" )
|
||||
%saveAs = %saveAs @ ".png";
|
||||
|
||||
%material = %this.currentMaterial;
|
||||
%layer = %this.currentLayer;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue