]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/brushmanip.cpp
- Weird shiftvalues are now hidden to the user, shiftvalues will
[xonotic/netradiant.git] / radiant / brushmanip.cpp
index a19095e1dc93752c7dedff9c915ce16dfd762225..b2acc1faeda76e52de8817f12e15140969fc3da5 100644 (file)
@@ -729,6 +729,16 @@ void Scene_BrushGetTexdef_Component_Selected(scene::Graph& graph, TextureProject
 #endif
 }
 
+void Scene_BrushGetShaderSize_Component_Selected(scene::Graph& graph, size_t& width, size_t& height)
+{
+  if(!g_SelectedFaceInstances.empty())
+  {
+    FaceInstance& faceInstance = g_SelectedFaceInstances.last();
+       width = faceInstance.getFace().getShader().width();
+       height = faceInstance.getFace().getShader().height();
+  }
+}
+
 
 class FaceGetFlags
 {