]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patchmanip.cpp
Fix: Selection is now deleted when creating a patch out of it (aumüller / namespace)
[xonotic/netradiant.git] / radiant / patchmanip.cpp
index 80292238c4290cf38e35cc26277f2ad38f27079e..421290654864996c02299e81fb8e0e90c71b8cc0 100644 (file)
@@ -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());