Commit e6a6ff08 authored by hybrid's avatar hybrid

Remove checks and default constructed dummies due to erroneous temporary usage.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3938 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 5a663375
......@@ -128,10 +128,8 @@ namespace scene
//! returns position of vertex i
virtual const core::vector3df& getPosition(u32 i) const
{
if (Vertices)
_IRR_DEBUG_BREAK_IF(!Vertices);
return (*Vertices)[Indices[i]].Pos;
else
return core::vector3df();
}
//! returns position of vertex i
......@@ -144,10 +142,8 @@ namespace scene
//! returns normal of vertex i
virtual const core::vector3df& getNormal(u32 i) const
{
if (Vertices)
_IRR_DEBUG_BREAK_IF(!Vertices);
return (*Vertices)[Indices[i]].Normal;
else
return core::vector3df();
}
//! returns normal of vertex i
......@@ -160,10 +156,8 @@ namespace scene
//! returns texture coord of vertex i
virtual const core::vector2df& getTCoords(u32 i) const
{
if (Vertices)
_IRR_DEBUG_BREAK_IF(!Vertices);
return (*Vertices)[Indices[i]].TCoords;
else
return core::vector2df();
}
//! returns texture coord of vertex i
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment