added Node_getBrush function as requested by mattn (UFO:AI team)
authorForest Hale <lordhavoc>
Thu, 4 Jan 2007 16:10:21 +0000 (16:10 +0000)
committerForest Hale <lordhavoc>
Thu, 4 Jan 2007 16:10:21 +0000 (16:10 +0000)
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@129 8a3a26a2-13c4-0310-b231-cf6edde360e5

include/ibrush.h

index ddc825596c7da5c900e8d9bb1e1891fbd3be829c..22f7f56230d1a3504f61020213a11e62674e3163 100644 (file)
@@ -124,4 +124,9 @@ inline BrushCreator& GlobalBrushCreator()
   return GlobalBrushModule::getTable();
 }
 
+inline Brush* Node_getBrush(scene::Node& node)
+{
+  return NodeTypeCast<Brush>::cast(node);
+}
+
 #endif