Skip to content

Commit 2959d6b

Browse files
gregorycusapier
gregorycu
authored and
sapier
committedJan 17, 2015
Fix entitiy WieldMeshSceneNode not freed due to additional grab
1 parent 5481e38 commit 2959d6b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/content_cao.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -945,8 +945,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
945945
m_wield_meshnode = new WieldMeshSceneNode(
946946
smgr->getRootSceneNode(), smgr, -1);
947947
m_wield_meshnode->setItem(item, m_gamedef);
948-
m_wield_meshnode->grab();
949-
948+
950949
m_wield_meshnode->setScale(v3f(m_prop.visual_size.X/2,
951950
m_prop.visual_size.Y/2,
952951
m_prop.visual_size.X/2));
@@ -975,7 +974,7 @@ void GenericCAO::addToScene(scene::ISceneManager *smgr, ITextureSource *tsrc,
975974
updateBonePosition();
976975
updateAttachments();
977976
}
978-
977+
979978
void GenericCAO::updateLight(u8 light_at_pos)
980979
{
981980
u8 li = decode_light(light_at_pos);

0 commit comments

Comments
 (0)
Please sign in to comment.