Fix visual='cube' size
parent
a869d23451
commit
66e1cb324c
|
@ -781,9 +781,9 @@ public:
|
||||||
m_meshnode = smgr->addMeshSceneNode(mesh, NULL);
|
m_meshnode = smgr->addMeshSceneNode(mesh, NULL);
|
||||||
mesh->drop();
|
mesh->drop();
|
||||||
|
|
||||||
m_meshnode->setScale(v3f(m_prop.visual_size.X/2,
|
m_meshnode->setScale(v3f(m_prop.visual_size.X,
|
||||||
m_prop.visual_size.Y/2,
|
m_prop.visual_size.Y,
|
||||||
m_prop.visual_size.X/2));
|
m_prop.visual_size.X));
|
||||||
u8 li = m_last_light;
|
u8 li = m_last_light;
|
||||||
setMeshColor(m_meshnode->getMesh(), video::SColor(255,li,li,li));
|
setMeshColor(m_meshnode->getMesh(), video::SColor(255,li,li,li));
|
||||||
} else if(m_prop.visual == "wielditem"){
|
} else if(m_prop.visual == "wielditem"){
|
||||||
|
|
Loading…
Reference in New Issue