Skip to content
Snippets Groups Projects
Commit 930f407a authored by maxim@mnikolenko's avatar maxim@mnikolenko
Browse files

MAINT-3642 FIXED Allow saving textures with extension “.tga” at the end of the name.

parent ec8bac9c
No related branches found
No related tags found
No related merge requests found
...@@ -662,7 +662,7 @@ bool LLFilePicker::doNavSaveDialog(ESaveFilter filter, const std::string& filena ...@@ -662,7 +662,7 @@ bool LLFilePicker::doNavSaveDialog(ESaveFilter filter, const std::string& filena
case FFSAVE_TGAPNG: case FFSAVE_TGAPNG:
type = "PNG"; type = "PNG";
creator = "prvw"; creator = "prvw";
extension = "png"; extension = "png,tga";
break; break;
case FFSAVE_BMP: case FFSAVE_BMP:
type = "BMPf"; type = "BMPf";
......
...@@ -107,7 +107,7 @@ std::string* doSaveDialog(const std::string* file, ...@@ -107,7 +107,7 @@ std::string* doSaveDialog(const std::string* file,
NSSavePanel *panel = [NSSavePanel savePanel]; NSSavePanel *panel = [NSSavePanel savePanel];
NSString *extensionns = [NSString stringWithCString:extension->c_str() encoding:[NSString defaultCStringEncoding]]; NSString *extensionns = [NSString stringWithCString:extension->c_str() encoding:[NSString defaultCStringEncoding]];
NSArray *fileType = [[NSArray alloc] initWithObjects:extensionns,nil]; NSArray *fileType = [extensionns componentsSeparatedByString:@","];
//[panel setMessage:@"Save Image File"]; //[panel setMessage:@"Save Image File"];
[panel setTreatsFilePackagesAsDirectories: ( flags & F_NAV_SUPPORT ) ]; [panel setTreatsFilePackagesAsDirectories: ( flags & F_NAV_SUPPORT ) ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment