mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-04-15 16:54:24 -04:00
Fixed example. PR #671.
This commit is contained in:
parent
016bfc4290
commit
ed061b62fc
1 changed files with 8 additions and 6 deletions
|
@ -436,13 +436,15 @@ class Terrain : public entry::AppI
|
|||
imguiEndScrollArea();
|
||||
imguiEndFrame();
|
||||
|
||||
// Update camera.
|
||||
cameraUpdate(deltaTime, m_mouseState);
|
||||
|
||||
bool leftMouseButtonDown = !!m_mouseState.m_buttons[entry::MouseButton::Left];
|
||||
if (leftMouseButtonDown)
|
||||
if (!imguiMouseOverArea() )
|
||||
{
|
||||
mousePickTerrain();
|
||||
// Update camera.
|
||||
cameraUpdate(deltaTime, m_mouseState);
|
||||
|
||||
if (!!m_mouseState.m_buttons[entry::MouseButton::Left])
|
||||
{
|
||||
mousePickTerrain();
|
||||
}
|
||||
}
|
||||
|
||||
// Update terrain.
|
||||
|
|
Loading…
Add table
Reference in a new issue