Skip to content

Commit d4def46

Browse files
committed
fix(camera): fix previous commit
fix previous commit
1 parent b74186e commit d4def46

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Rendering/Core/Camera/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ function vtkCamera(publicAPI, model) {
7777

7878
// Internal Functions that don't need to be public
7979
function computeViewPlaneNormal() {
80+
// Instanciation time
81+
if (model.viewPlaneNormal === undefined) {
82+
model.viewPlaneNormal = defaultValues().viewPlaneNormal;
83+
}
8084
// VPN is -DOP
8185
model.viewPlaneNormal[0] = -model.directionOfProjection[0];
8286
model.viewPlaneNormal[1] = -model.directionOfProjection[1];

0 commit comments

Comments
 (0)