@@ -588,7 +588,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
588
588
};
589
589
590
590
if (m_prop.visual == " sprite" ) {
591
- getMatrixNode ();
591
+ grabMatrixNode ();
592
592
m_spritenode = RenderingEngine::get_scene_manager ()->addBillboardSceneNode (
593
593
m_matrixnode, v2f (1 , 1 ), v3f (0 ,0 ,0 ), -1 );
594
594
m_spritenode->grab ();
@@ -609,7 +609,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
609
609
txs, tys, 0 , 0 );
610
610
}
611
611
} else if (m_prop.visual == " upright_sprite" ) {
612
- getMatrixNode ();
612
+ grabMatrixNode ();
613
613
scene::SMesh *mesh = new scene::SMesh ();
614
614
double dx = BS * m_prop.visual_size .X / 2 ;
615
615
double dy = BS * m_prop.visual_size .Y / 2 ;
@@ -672,7 +672,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
672
672
// This is needed for changing the texture in the future
673
673
m_meshnode->setReadOnlyMaterials (true );
674
674
} else if (m_prop.visual == " cube" ) {
675
- getMatrixNode ();
675
+ grabMatrixNode ();
676
676
scene::IMesh *mesh = createCubeMesh (v3f (BS,BS,BS));
677
677
m_meshnode = RenderingEngine::get_scene_manager ()->
678
678
addMeshSceneNode (mesh, m_matrixnode);
@@ -688,7 +688,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
688
688
m_meshnode->setMaterialType (material_type);
689
689
m_meshnode->setMaterialFlag (video::EMF_FOG_ENABLE, true );
690
690
} else if (m_prop.visual == " mesh" ) {
691
- getMatrixNode ();
691
+ grabMatrixNode ();
692
692
scene::IAnimatedMesh *mesh = m_client->getMesh (m_prop.mesh , true );
693
693
if (mesh) {
694
694
m_animated_meshnode = RenderingEngine::get_scene_manager ()->
@@ -713,7 +713,7 @@ void GenericCAO::addToScene(ITextureSource *tsrc)
713
713
} else
714
714
errorstream<<" GenericCAO::addToScene(): Could not load mesh " <<m_prop.mesh <<std::endl;
715
715
} else if (m_prop.visual == " wielditem" || m_prop.visual == " item" ) {
716
- getMatrixNode ();
716
+ grabMatrixNode ();
717
717
ItemStack item;
718
718
if (m_prop.wield_item .empty ()) {
719
719
// Old format, only textures are specified.
0 commit comments