mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 16:14:38 +00:00
form steve yorkshire: mat editor save extension fix
This commit is contained in:
parent
b6a1acabf8
commit
fadafbfa1b
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