Skip to content

Commit 2ac70b7

Browse files
committed
Implemented interactive rendering support
1 parent 47f61dc commit 2ac70b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

polykit/renderers/backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def interactive(self, standalone=True):
3333
"""
3434

3535
view = interact.SceneView(self.scene)
36-
36+
3737
if standalone:
3838
view.show()
3939
interact.app.exec_()
@@ -73,7 +73,7 @@ def static(self,
7373
canvas = fl.preview(self.scene, h=height, w=width)
7474

7575
if png_output_file:
76-
image = PIL.Image.fromarray(canvas, mode='RGBA')
76+
image = PIL.Image.fromarray(canvas[:], mode='RGBA')
7777
image.save(png_output_file)
7878

7979
else:

0 commit comments

Comments
 (0)