Ignore billboard text nodes in physics, fixes #1666
This commit is contained in:
parent
6c85480010
commit
b204de7a8e
@ -58,6 +58,11 @@ public:
|
|||||||
|
|
||||||
virtual void updateNoGL() OVERRIDE;
|
virtual void updateNoGL() OVERRIDE;
|
||||||
|
|
||||||
|
virtual scene::ESCENE_NODE_TYPE getType() const OVERRIDE
|
||||||
|
{
|
||||||
|
return scene::ESNT_TEXT;
|
||||||
|
}
|
||||||
|
|
||||||
virtual void collectChar(irr::video::ITexture* texture,
|
virtual void collectChar(irr::video::ITexture* texture,
|
||||||
const irr::core::rect<irr::s32>& destRect,
|
const irr::core::rect<irr::s32>& destRect,
|
||||||
const irr::core::rect<irr::s32>& sourceRect,
|
const irr::core::rect<irr::s32>& sourceRect,
|
||||||
|
@ -736,6 +736,9 @@ void Track::createPhysicsModel(unsigned int main_track_count)
|
|||||||
*/
|
*/
|
||||||
void Track::convertTrackToBullet(scene::ISceneNode *node)
|
void Track::convertTrackToBullet(scene::ISceneNode *node)
|
||||||
{
|
{
|
||||||
|
if (node->getType() == scene::ESNT_TEXT)
|
||||||
|
return;
|
||||||
|
|
||||||
if (node->getType() == scene::ESNT_LOD_NODE)
|
if (node->getType() == scene::ESNT_LOD_NODE)
|
||||||
{
|
{
|
||||||
node = ((LODNode*)node)->getFirstNode();
|
node = ((LODNode*)node)->getFirstNode();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user