]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/patch.cpp
enable the previously disabled "Sphere" patch primitive
[xonotic/netradiant.git] / radiant / patch.cpp
index 59be212ee50f6226371ccfb466be714b597758a3..1c314c17bcb868076d5bbd386ccd2716f5fc4c82 100644 (file)
@@ -1336,7 +1336,7 @@ void Patch::ConstructPrefab(const AABB& aabb, EPatchPrefab eType, int axis, std:
         {
           pCtrl->m_vertex[0] = vPos[1][0];
           pCtrl->m_vertex[1] = vPos[1][1];
-          pCtrl->m_vertex[2] = vPos[2][2];
+          pCtrl->m_vertex[2] = vPos[0][2];
         }
       }
       {
@@ -1348,6 +1348,7 @@ void Patch::ConstructPrefab(const AABB& aabb, EPatchPrefab eType, int axis, std:
           pCtrl->m_vertex[2] = vPos[2][2];
         }
       }
+         break;
     default:
       ERROR_MESSAGE("this should be unreachable");
       return;