aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgregorycu <none@none.none>2015-01-17 19:13:08 +0100
committersapier <Sapier at GMX dot net>2015-01-17 19:13:08 +0100
commit2959d6b3dac587e0843b8791a30d8c31e78d58b4 (patch)
tree76745ea1af40adddec0512c299d2fc69d9726324 /src
parent5481e38d0b505277615f8b76cb90f0742a1dfe6f (diff)
downloadminetest-2959d6b3dac587e0843b8791a30d8c31e78d58b4.tar.gz
minetest-2959d6b3dac587e0843b8791a30d8c31e78d58b4.tar.bz2
minetest-2959d6b3dac587e0843b8791a30d8c31e78d58b4.zip
Fix entitiy WieldMeshSceneNode not freed due to additional grab
Diffstat (limited to 'src')
-rw-r--r--src/content_cao.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/content_cao.cpp b/src/content_cao.cpp
index 671ddd4b1..6d41b2749 100644
--- a/src/content_cao.cpp
+++ b/src/content_cao.cpp
@@ -945,8 +945,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
m_wield_meshnode = new WieldMeshSceneNode(
smgr->getRootSceneNode(), smgr, -1);
m_wield_meshnode->setItem(item, m_gamedef);
- m_wield_meshnode->grab();
-
+
m_wield_meshnode->setScale(v3f(m_prop.visual_size.X/2,
m_prop.visual_size.Y/2,
m_prop.visual_size.X/2));
@@ -975,7 +974,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
updateBonePosition();
updateAttachments();
}
-
+
void GenericCAO::updateLight(u8 light_at_pos)
{
u8 li = decode_light(light_at_pos);