diff options
author | sapier <sapier at gmx dot net> | 2012-02-04 18:08:25 +0100 |
---|---|---|
committer | sapier <sapier at gmx dot net> | 2012-02-04 18:08:25 +0100 |
commit | 09476447297a35f04b0bd89dddafbadcbb96f83d (patch) | |
tree | c3bb8585966d2fd29a4bb2570ccd2245409f0276 /src/content_cao.cpp | |
parent | 77df09540c4d7eadef760779e123af88a48aafaa (diff) | |
download | minetest-20120204_luaentity_allfaces.tar.xz |
added drawallfaces to luaentities20120204_luaentity_allfaces
Diffstat (limited to 'src/content_cao.cpp')
-rw-r--r-- | src/content_cao.cpp | 9 |
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)); |