summaryrefslogtreecommitdiff
path: root/src/content_cao.cpp
diff options
context:
space:
mode:
authorsapier <sapier at gmx dot net>2012-02-04 18:08:25 +0100
committersapier <sapier at gmx dot net>2012-02-04 18:08:25 +0100
commit09476447297a35f04b0bd89dddafbadcbb96f83d (patch)
treec3bb8585966d2fd29a4bb2570ccd2245409f0276 /src/content_cao.cpp
parent77df09540c4d7eadef760779e123af88a48aafaa (diff)
downloadminetest-20120204_luaentity_allfaces.tar.xz
added drawallfaces to luaentities20120204_luaentity_allfaces
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r--src/content_cao.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 37da0f67d..d08be6f1a 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -1818,6 +1818,15 @@ public:
m_meshnode->setScale(v3f(1));
// Will be shown when we know the brightness
m_meshnode->setVisible(false);
+ } else if(m_prop->visual == "cube_allfaces"){
+ infostream<<"LuaEntityCAO::addToScene(): cube_allfaces"<<std::endl;
+ scene::IMesh *mesh = createCubeMesh(v3f(BS,BS,BS),true);
+ m_meshnode = smgr->addMeshSceneNode(mesh, NULL);
+ mesh->drop();
+
+ m_meshnode->setScale(v3f(1));
+ // Will be shown when we know the brightness
+ m_meshnode->setVisible(false);
} else if (m_prop->visual == "plant") {
infostream<<"LuaEntityCAO::addToScene(): plant"<<std::endl;
scene::IMesh *mesh = createPlantMesh(v3f(BS,BS,BS));