Bugfix: billboard nodes did not use materials.xml for setting the material properties.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7038 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
731bb83ad3
commit
fc4e59dc6e
@ -19,6 +19,8 @@
|
||||
|
||||
#include "animations/billboard_animation.hpp"
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "graphics/material.hpp"
|
||||
#include "graphics/material_manager.hpp"
|
||||
#include "io/file_manager.hpp"
|
||||
|
||||
class XMLNode;
|
||||
@ -37,7 +39,8 @@ BillboardAnimation::BillboardAnimation(const XMLNode &xml_node)
|
||||
irr_driver->getTexture(file_manager->getTextureFile(texture_name));
|
||||
m_node = irr_driver->addBillboard(core::dimension2df(width, height),
|
||||
texture);
|
||||
m_node-> setMaterialType(video::EMT_TRANSPARENT_ALPHA_CHANNEL );
|
||||
Material *stk_material = material_manager->getMaterial(texture_name);
|
||||
stk_material->setMaterialProperties(&(m_node->getMaterial(0)));
|
||||
|
||||
m_node->setPosition(m_init_xyz);
|
||||
} // BillboardAnimation
|
||||
|
Loading…
x
Reference in New Issue
Block a user