ID 516363 - Calling View3D.Axis when view is set to a Camera returns 7, the #define "enum" only goes up to 6 with perspective.

Follow

Problem summary
Calling View3D.Axis when view is set to a Camera returns 7, the #define "enum" only goes up to 6 with perspective.
 
Customer reported version
modo.n/a
 
Customer reported platform
windows10
 
Steps to reproduce
 
1) Open Modo

2) Change the view to Camera.

3) Select Layout > Palettes > Scripting.
 
4) Enter following into the Script Editor:
 

view_service = lx.service.View3Dport() view = lx.object.View3D(view_service.View(view_service.Current())) _, vp_axis, _ = view.Axis() print(vp_axis)
 
Expected behaviour
According to the lxvp.h defines it should return 6.
/*  * -    int Axis (self, cam, axis)  *  Returns the view axis. Note that perspective views return -1, and that UV  *  views always return a Z axis. For convenience, the view's camera mode is also  *  provided. If it or the 'axis' vector pointers are NULL they will not be filled.  */         #define LXi_VP_AXIS_X        0         #define LXi_VP_AXIS_Y        1         #define LXi_VP_AXIS_Z        2         #define LXi_VP_AXIS_PERSP   -1         #define LXi_VP_AXIS_UV       LXi_VP_AXIS_Z         #define LXi_VP_CAM_LEFT     0         #define LXi_VP_CAM_RIGHT    1         #define LXi_VP_CAM_TOP      2         #define LXi_VP_CAM_BOTTOM   3         #define LXi_VP_CAM_FRONT    4         #define LXi_VP_CAM_BACK     5         #define LXi_VP_CAM_PERSP    6
 
Actual behaviour
It returns 7.
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
16.0v2 - Windows 10, macOS 11
14.0v1 - Windows 10, macOS 11
 
Earliest version tested
14.0v1 - This issue appears to be in all tested versions of the product.
 

    We're sorry to hear that

    Please tell us why