Skip to content

Commit e571518

Browse files
Fix resize.
1 parent e34fe84 commit e571518

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/rprblender/engine/render_engine.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ def set_render_result(render_passes: bpy.types.RenderPasses):
155155
images_data = np.concatenate(images)
156156
if BLENDER_VERSION >= '4.0':
157157
# foreach_set requires every pass to be 4 channels, so we resize to reach desirable size
158-
# images_data.resize((len(render_passes) * self.width * self.height * 4,))
159158
np.resize( images_data, (len(render_passes) * self.width * self.height * 4,))
160159

161160
# efficient way to copy all AOV images
@@ -212,7 +211,7 @@ def set_render_result(render_passes: bpy.types.RenderPasses):
212211
images_data = np.concatenate(images)
213212
if BLENDER_VERSION >= '4.0':
214213
# foreach_set requires every pass to be 4 channels, so we resize to reach desirable size
215-
images_data.resize((len(render_passes) * self.width * self.height * 4,))
214+
np.resize( images_data, (len(render_passes) * self.width * self.height * 4,))
216215

217216
# efficient way to copy all AOV images
218217
render_passes.foreach_set('rect', images_data)

0 commit comments

Comments
 (0)