From f8d3a0953a89b725bbe92bb1e9efeeb44e993bd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernd=20L=C3=B6rwald?= Date: Thu, 12 Dec 2024 17:58:26 +0100 Subject: [PATCH] type <> member confusion --- src/noggit/ui/texturing_tool.cpp | 4 ++-- src/noggit/ui/texturing_tool.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/noggit/ui/texturing_tool.cpp b/src/noggit/ui/texturing_tool.cpp index d661d0db9..e970ccf44 100644 --- a/src/noggit/ui/texturing_tool.cpp +++ b/src/noggit/ui/texturing_tool.cpp @@ -48,7 +48,7 @@ namespace noggit layout->addRow (_current_texture); layout->setAlignment(_current_texture, Qt::AlignHCenter); - texture_picker = new ui::texture_picker(_current_texture); + _texture_picker = new ui::texture_picker(_current_texture); auto tabs (new QTabWidget(this)); @@ -449,7 +449,7 @@ namespace noggit else if (_mod_ctrl_down) { // Pick texture - texture_picker->getTextures(world->get_chunk_at(cursor_pos)); + _texture_picker->getTextures(world->get_chunk_at(cursor_pos)); } else if (_mod_shift_down && !!noggit::ui::selected_texture::get()) { diff --git a/src/noggit/ui/texturing_tool.hpp b/src/noggit/ui/texturing_tool.hpp index 1d77bfb8b..b07d75ab8 100644 --- a/src/noggit/ui/texturing_tool.hpp +++ b/src/noggit/ui/texturing_tool.hpp @@ -73,7 +73,7 @@ namespace noggit } current_texture* _current_texture; - texture_picker* texture_picker; + texture_picker* _texture_picker; texture_swapper* const texture_swap_tool() { return _texture_switcher; }