Silence annoying error message in writefile on undo step storage.

Fix T75318: Error spam in console when opening file from 2.7x.
This commit is contained in:
2020-04-22 16:14:35 +02:00
parent 45f8d1783b
commit 878cd0e124

View File

@@ -2194,7 +2194,7 @@ static void write_customdata(WriteData *wd,
datasize = structnum * count;
writestruct_id(wd, DATA, structname, datasize, layer->data);
}
else {
else if (!wd->use_memfile) { /* Do not warn on undo. */
printf("%s error: layer '%s':%d - can't be written to file\n",
__func__,
structname,