Cleanup: use "num" as a suffix in: source/blender/render

See T85728
This commit is contained in:
2022-03-28 11:12:57 +11:00
parent 83c274ccfc
commit 556384ca1d
5 changed files with 90 additions and 90 deletions

View File

@@ -827,14 +827,14 @@ bool RE_bake_engine(Render *re,
type->update(engine, re->main, engine->depsgraph);
}
for (int i = 0; i < targets->num_images; i++) {
for (int i = 0; i < targets->images_num; i++) {
const BakeImage *image = targets->images + i;
engine->bake.pixels = pixel_array + image->offset;
engine->bake.result = result + image->offset * targets->num_channels;
engine->bake.result = result + image->offset * targets->channels_num;
engine->bake.width = image->width;
engine->bake.height = image->height;
engine->bake.depth = targets->num_channels;
engine->bake.depth = targets->channels_num;
engine->bake.object_id = object_id;
type->bake(