Browse Source

Merge pull request #508 from thecelloman/guiObjectView-cameraRotation-fix

Initialize mCameraRotation to (0, 0, 0).
SilentMike 12 năm trước cách đây
mục cha
commit
e86aeded83
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      Engine/source/T3D/guiObjectView.cpp

+ 1 - 0
Engine/source/T3D/guiObjectView.cpp

@@ -103,6 +103,7 @@ GuiObjectView::GuiObjectView()
       mMountNodeName( "mount0" ),
       mMountNode( -1 ),
       mCameraSpeed( 0.01f ),
+	  mCameraRotation( 0.0f, 0.0f, 0.0f ),
       mLightColor( 1.0f, 1.0f, 1.0f ),
       mLightAmbient( 0.5f, 0.5f, 0.5f ),
       mLightDirection( 0.f, 0.707f, -0.707f )