diff options
| author | sapier <sapier at gmx dot net> | 2012-01-15 20:30:26 +0100 |
|---|---|---|
| committer | sapier <sapier at gmx dot net> | 2012-01-15 20:30:26 +0100 |
| commit | 3454e6779337d8523ae76c7fa16eb8c565aa2381 (patch) | |
| tree | 01be686a28789d3238706cf570ecbd28a9ba6ae6 /src/content_cao.cpp | |
| parent | 0c78767754c5664373a3bf9fe8dc8a20c8a3ed7d (diff) | |
| download | minetest-3454e6779337d8523ae76c7fa16eb8c565aa2381.tar.xz | |
added new entity style irregular_cube
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 76f23082d..83f1cedff 100644 --- a/src/content_cao.cpp +++ b/src/content_cao.cpp @@ -1814,6 +1814,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_disorted") { + infostream<<"LuaEntityCAO::addToScene(): irregular_cube"<<std::endl; + scene::IMesh *mesh = createCubeMesh(v3f(BS,BS,BS), m_prop->collisionbox); + 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 { infostream<<"LuaEntityCAO::addToScene(): \""<<m_prop->visual <<"\" not supported"<<std::endl; |
