From 2e97c6dc9f4ee04a040b3ba235424a3633f562dd Mon Sep 17 00:00:00 2001 From: namespace Date: Mon, 19 Mar 2007 20:16:06 +0000 Subject: [PATCH] =?utf8?q?Fix:=20Selection=20is=20now=20deleted=20when=20c?= =?utf8?q?reating=20a=20patch=20out=20of=20it=20(aum=C3=BCller=20/=20names?= =?utf8?q?pace)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@158 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- CHANGES | 4 ++++ radiant/patchmanip.cpp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index b026e00f..6f87cf82 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,10 @@ This is the changelog for developers, != changelog for the end user that we distribute with the binaries. (see changelog) +19/03/2007 +namespace +- Fix: Selection is now deleted when creating a patch out of it (aumüller / namespace) + 08/03/2007 namespace - Win32 compile fix (woekele) diff --git a/radiant/patchmanip.cpp b/radiant/patchmanip.cpp index 80292238..42129065 100644 --- a/radiant/patchmanip.cpp +++ b/radiant/patchmanip.cpp @@ -46,8 +46,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA PatchCreator* g_patchCreator = 0; -void Scene_PatchConstructPrefab(scene::Graph& graph, const AABB& aabb, const char* shader, EPatchPrefab eType, int axis, std::size_t width = 3, std::size_t height = 3) +void Scene_PatchConstructPrefab(scene::Graph& graph, const AABB aabb, const char* shader, EPatchPrefab eType, int axis, std::size_t width = 3, std::size_t height = 3) { + Select_Delete(); GlobalSelectionSystem().setSelectedAll(false); NodeSmartReference node(g_patchCreator->createPatch()); -- 2.39.2