WIP: Initial version of a single-frame job compiler #104189
@ -176,7 +176,7 @@ for index, image in enumerate(filenames):
|
||||
for dimension in dimensions:
|
||||
if dimensions[dimension] == 0:
|
||||
image_nodes[index].inputs[dimension].default_value = normalize(${settings.tile_size} / 100 / 2)
|
||||
elif dimensions[dimension] == row_max:
|
||||
elif dimensions[dimension] == row_max and 100 % ${settings.tile_size} != 0:
|
||||
image_nodes[index].inputs[dimension].default_value = normalize((${settings.tile_size} / 100 + (dimensions[dimension] - 1) * ${settings.tile_size} / 100) + ((100 % ${settings.tile_size}) / 100) / 2)
|
||||
else:
|
||||
image_nodes[index].inputs[dimension].default_value = normalize((${settings.tile_size} / 100 + (dimensions[dimension] - 1) * ${settings.tile_size} / 100) + (${settings.tile_size} / 100) / 2)
|
||||
|
Loading…
Reference in New Issue
Block a user