Committing a couple things that should've been in the last commit
This commit is contained in:
parent
d66b3dee8e
commit
a2bb48f53f
|
@ -201,7 +201,7 @@ void CScene::ClearScene()
|
||||||
void CScene::AddSceneToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo)
|
void CScene::AddSceneToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo)
|
||||||
{
|
{
|
||||||
// Override show flags in game mode
|
// Override show flags in game mode
|
||||||
FShowFlags ShowFlags = (ViewInfo.GameMode ? gGameModeShowFlags : ViewInfo.ShowFlags);
|
FShowFlags ShowFlags = (ViewInfo.GameMode ? gkGameModeShowFlags : ViewInfo.ShowFlags);
|
||||||
|
|
||||||
for (auto it = mNodes.begin(); it != mNodes.end(); it++)
|
for (auto it = mNodes.begin(); it != mNodes.end(); it++)
|
||||||
{
|
{
|
||||||
|
@ -218,7 +218,7 @@ void CScene::AddSceneToRenderer(CRenderer *pRenderer, const SViewInfo& ViewInfo)
|
||||||
|
|
||||||
SRayIntersection CScene::SceneRayCast(const CRay& Ray, const SViewInfo& ViewInfo)
|
SRayIntersection CScene::SceneRayCast(const CRay& Ray, const SViewInfo& ViewInfo)
|
||||||
{
|
{
|
||||||
FShowFlags ShowFlags = (ViewInfo.GameMode ? gGameModeShowFlags : ViewInfo.ShowFlags);
|
FShowFlags ShowFlags = (ViewInfo.GameMode ? gkGameModeShowFlags : ViewInfo.ShowFlags);
|
||||||
CRayCollisionTester Tester(Ray);
|
CRayCollisionTester Tester(Ray);
|
||||||
|
|
||||||
for (auto it = mNodes.begin(); it != mNodes.end(); it++)
|
for (auto it = mNodes.begin(); it != mNodes.end(); it++)
|
||||||
|
|
|
@ -31,11 +31,7 @@ public:
|
||||||
CSceneViewport(QWidget *pParent = 0);
|
CSceneViewport(QWidget *pParent = 0);
|
||||||
~CSceneViewport();
|
~CSceneViewport();
|
||||||
void SetScene(INodeEditor *pEditor, CScene *pScene);
|
void SetScene(INodeEditor *pEditor, CScene *pScene);
|
||||||
<<<<<<< Updated upstream
|
|
||||||
void SetSkyEnabled(bool b);
|
|
||||||
=======
|
|
||||||
void SetShowFlag(EShowFlag Flag, bool Visible);
|
void SetShowFlag(EShowFlag Flag, bool Visible);
|
||||||
>>>>>>> Stashed changes
|
|
||||||
CRenderer* Renderer();
|
CRenderer* Renderer();
|
||||||
CSceneNode* HoverNode();
|
CSceneNode* HoverNode();
|
||||||
CVector3f HoverPoint();
|
CVector3f HoverPoint();
|
||||||
|
|
Loading…
Reference in New Issue