Browse Source

Update guiMaterialPreview.cpp

more "fixes"
marauder2k7 9 months ago
parent
commit
e7a7935bd4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/T3D/guiMaterialPreview.cpp

+ 3 - 0
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