mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
NewFile command: Don't change palette in grayscale images
This commit is contained in:
parent
76afcfedac
commit
f91f41a425
@ -174,7 +174,8 @@ void NewFileCommand::onExecute(Context* context)
|
||||
(format == IMAGE_INDEXED ? ncolors: 256)));
|
||||
Sprite* sprite(document->getSprite());
|
||||
|
||||
get_default_palette()->copyColorsTo(sprite->getPalette(FrameNumber(0)));
|
||||
if (sprite->getPixelFormat() != IMAGE_GRAYSCALE)
|
||||
get_default_palette()->copyColorsTo(sprite->getPalette(FrameNumber(0)));
|
||||
|
||||
usprintf(buf, "Sprite-%04d", ++_sprite_counter);
|
||||
document->setFilename(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user