mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-26 09:35:28 +00:00
changed a method for ogre 1.8.0
This commit is contained in:
parent
1f7e044fad
commit
565aad3783
@ -70,7 +70,7 @@ namespace Render
|
|||||||
if(typeid(*rend) == typeid(Ogre::SubEntity))
|
if(typeid(*rend) == typeid(Ogre::SubEntity))
|
||||||
{
|
{
|
||||||
const Ogre::SubEntity *subEntity = static_cast<const Ogre::SubEntity *>(rend);
|
const Ogre::SubEntity *subEntity = static_cast<const Ogre::SubEntity *>(rend);
|
||||||
int id = subEntity->getParent ()->getUserObjectBindings().getUserAny().get<int>();
|
int id = Ogre::any_cast<int>(subEntity->getParent ()->getUserObjectBindings().getUserAny());
|
||||||
bool found = false;
|
bool found = false;
|
||||||
Ogre::ColourValue colour;
|
Ogre::ColourValue colour;
|
||||||
for (std::map<Ogre::ColourValue, int>::iterator it = mColourMap.begin(); it != mColourMap.end(); ++it)
|
for (std::map<Ogre::ColourValue, int>::iterator it = mColourMap.begin(); it != mColourMap.end(); ++it)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user