|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|