File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ shadowFunction:*/src/vsg/state/DescriptorImage.cpp
208208shadowFunction:*/src/vsg/utils/FindDynamicObjects.cpp
209209shadowFunction:*/src/vsg/utils/LoadPagedLOD.cpp
210210shadowFunction:*/src/vsg/utils/PropagateDynamicObjects.cpp
211+ shadowFunction:*/src/vsg/app/ViewMatrix.cpp
211212
212213// suppress unhelpful warning of c casts
213214cstyleCast:*/include/vsg/io/mem_stream.h
Original file line number Diff line number Diff line change @@ -444,7 +444,15 @@ void RecordTraversal::apply(const CoordinateFrame& cf)
444444 Camera* camera = parentView ? parentView->camera : nullptr ;
445445 ViewMatrix* viewMatrix = camera ? camera->viewMatrix : nullptr ;
446446
447- _state->modelviewMatrixStack .push (viewMatrix->transform (cf.origin ));
447+ if (viewMatrix)
448+ {
449+ _state->modelviewMatrixStack .push (viewMatrix->transform (cf.origin ));
450+ }
451+ else
452+ {
453+ _state->modelviewMatrixStack .push (cf);
454+ }
455+
448456 _state->dirty = true ;
449457
450458 if (cf.subgraphRequiresLocalFrustum )
You can’t perform that action at this time.
0 commit comments