projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5481e38
)
Fix entitiy WieldMeshSceneNode not freed due to additional grab
author
gregorycu
<none@none.none>
Sat, 17 Jan 2015 18:13:08 +0000
(19:13 +0100)
committer
sapier
<Sapier at GMX dot net>
Sat, 17 Jan 2015 18:13:08 +0000
(19:13 +0100)
src/content_cao.cpp
patch
|
blob
|
history
diff --git
a/src/content_cao.cpp
b/src/content_cao.cpp
index 671ddd4b1afc241667b734229b4c49b176f3b349..6d41b27490879ba7cb7f5284d736ff4a51f9675f 100644
(file)
--- 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);