mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +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 = "";
|
%saveAs = "";
|
||||||
%dlg = new SaveFileDialog()
|
%dlg = new SaveFileDialog()
|
||||||
{
|
{
|
||||||
Filters = "png";
|
Filters = "PNG File (*.png)|*.png";
|
||||||
DefaultPath = EditorSettings.value("data/");
|
DefaultPath = EditorSettings.value("data/");
|
||||||
ChangePath = false;
|
ChangePath = false;
|
||||||
OverwritePrompt = true;
|
OverwritePrompt = true;
|
||||||
|
|
@ -2565,6 +2565,9 @@ function MaterialEditorGui::saveCompositeMap(%this)
|
||||||
%saveAs = %dlg.FileName;
|
%saveAs = %dlg.FileName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( fileExt( %saveAs ) !$= ".png" )
|
||||||
|
%saveAs = %saveAs @ ".png";
|
||||||
|
|
||||||
%material = %this.currentMaterial;
|
%material = %this.currentMaterial;
|
||||||
%layer = %this.currentLayer;
|
%layer = %this.currentLayer;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue