1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-22 10:39:41 +00:00
This commit is contained in:
unelsson 2021-08-22 20:11:02 +03:00
parent 4b14818035
commit 08f7c73e02

View file

@ -29,14 +29,14 @@ void CSVRender::DrawTerrainSelectionCommand::tryUpdate()
{ {
if (!mWorldspaceWidget) if (!mWorldspaceWidget)
{ {
Log(Debug::Verbose) << "Can't undo terrain selection, no WorldspaceWidget found!"; Log(Debug::Verbose) << "Can't update terrain selection, no WorldspaceWidget found!";
return; return;
} }
auto terrainMode = dynamic_cast<CSVRender::TerrainShapeMode*>(mWorldspaceWidget->getEditMode()); auto terrainMode = dynamic_cast<CSVRender::TerrainShapeMode*>(mWorldspaceWidget->getEditMode());
if (!terrainMode) if (!terrainMode)
{ {
Log(Debug::Verbose) << "Can't undo terrain selection in current EditMode"; Log(Debug::Verbose) << "Can't update terrain selection in current EditMode";
return; return;
} }