From 78f2a5181d941da16674c0f4f915ac79c31af74f Mon Sep 17 00:00:00 2001 From: Nelsson Huotari Date: Thu, 10 Oct 2019 14:22:58 +0300 Subject: [PATCH] Default brush size to 1 --- apps/opencs/view/render/terraintexturemode.cpp | 2 +- apps/opencs/view/widget/scenetooltexturebrush.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/opencs/view/render/terraintexturemode.cpp b/apps/opencs/view/render/terraintexturemode.cpp index 9b09614e63..6d682150a0 100644 --- a/apps/opencs/view/render/terraintexturemode.cpp +++ b/apps/opencs/view/render/terraintexturemode.cpp @@ -41,7 +41,7 @@ CSVRender::TerrainTextureMode::TerrainTextureMode (WorldspaceWidget *worldspaceWidget, osg::Group* parentNode, QWidget *parent) : EditMode (worldspaceWidget, QIcon {":scenetoolbar/editing-terrain-texture"}, Mask_Terrain | Mask_Reference, "Terrain texture editing", parent), mBrushTexture("L0#0"), - mBrushSize(0), + mBrushSize(1), mBrushShape(0), mTextureBrushScenetool(nullptr), mDragMode(InteractionType_None), diff --git a/apps/opencs/view/widget/scenetooltexturebrush.cpp b/apps/opencs/view/widget/scenetooltexturebrush.cpp index b199a27069..4081872795 100644 --- a/apps/opencs/view/widget/scenetooltexturebrush.cpp +++ b/apps/opencs/view/widget/scenetooltexturebrush.cpp @@ -58,7 +58,7 @@ CSVWidget::BrushSizeControls::BrushSizeControls(const QString &title, QWidget *p CSVWidget::TextureBrushWindow::TextureBrushWindow(CSMDoc::Document& document, QWidget *parent) : QFrame(parent, Qt::Popup), mBrushShape(0), - mBrushSize(0), + mBrushSize(1), mBrushTexture("L0#0"), mDocument(document) {