Page MenuHome

camera.view_frame() returns zero vectors (crashes Verge3D addon)
Closed, ResolvedPublic


System Information
Operating system: All
Graphics card: All

Blender Version
Broken: 2.80, adfdae3fc2f4, 2019-03-25
Worked: 2.80 dd9cedddae69 2019-02-28

Short description of error
Verge3D for Blender uses Camera.view_frame() to determine camera aspect ratio:

vf = bl_camera.view_frame(scene=bpy.context.scene)
aspectRatio = (vf[0].x - vf[2].x) / (vf[0].y - vf[2].y)

Since all the values are zero, the add-on crashes with ZeroDivisionError.

Related Objects