brender: don't override the row_bytes stored on disk (#167)

This commit is contained in:
Anonymous Maarten 2022-09-23 10:52:40 +02:00 committed by GitHub
parent b71d585583
commit fc65625272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -86,7 +86,9 @@ int FopRead_OLD_PIXELMAP(br_datafile* df, br_uint_32 id, br_uint_32 length, br_u
df->res = pp;
df->prims->struct_read(df, &br_old_pixelmap_F, pp);
df->res = NULL;
#if !defined(BRENDER_FIX_BUGS)
pp->row_bytes = (pmTypeInfo[pp->type].bits >> 3) * pp->width;
#endif
DfPush(DF_PIXELMAP, pp, 1);
return 0;
}
@ -100,7 +102,9 @@ int FopRead_PIXELMAP(br_datafile* df, br_uint_32 id, br_uint_32 length, br_uint_
df->res = pp;
df->prims->struct_read(df, &br_pixelmap_F, pp);
df->res = NULL;
#if !defined(BRENDER_FIX_BUGS)
pp->row_bytes = (pmTypeInfo[pp->type].bits >> 3) * pp->width;
#endif
DfPush(DF_PIXELMAP, pp, 1);
return 0;
}