diff --git a/Engine/source/T3D/guiMaterialPreview.cpp b/Engine/source/T3D/guiMaterialPreview.cpp index 0efa10aa8..e5ada8e25 100644 --- a/Engine/source/T3D/guiMaterialPreview.cpp +++ b/Engine/source/T3D/guiMaterialPreview.cpp @@ -372,6 +372,9 @@ void GuiMaterialPreview::renderWorld(const RectI &updateRect) mSaveFrustum = Frustum( isOrtho, left, right, bottom, top, nearPlane, farPlane, MatrixF::Identity ); mSaveFrustum.setTransform(MatrixF::Identity); + mSaveProjection = GFX->getProjectionMatrix(); + mSaveWorldToScreenScale = GFX->getWorldToScreenScale(); + FogData savedFogData = gClientSceneGraph->getFogData(); gClientSceneGraph->setFogData( FogData() ); // no fog in preview window