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

master
maxim@mnikolenko 2014-01-24 12:12:43 +02:00
parent ec8bac9c26
commit 930f407a1c
2 changed files with 2 additions and 2 deletions

View File

@ -662,7 +662,7 @@ bool LLFilePicker::doNavSaveDialog(ESaveFilter filter, const std::string& filena
case FFSAVE_TGAPNG:
type = "PNG";
creator = "prvw";
extension = "png";
extension = "png,tga";
break;
case FFSAVE_BMP:
type = "BMPf";

View File

@ -107,7 +107,7 @@ std::string* doSaveDialog(const std::string* file,
NSSavePanel *panel = [NSSavePanel savePanel];
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 setTreatsFilePackagesAsDirectories: ( flags & F_NAV_SUPPORT ) ];