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
master
hybrid 2011-10-08 12:34:10 +00:00
parent 5a663375b4
commit e6a6ff0838
1 changed files with 6 additions and 12 deletions

View File

@ -128,10 +128,8 @@ namespace scene
//! returns position of vertex i
virtual const core::vector3df& getPosition(u32 i) const
{
if (Vertices)
return (*Vertices)[Indices[i]].Pos;
else
return core::vector3df();
_IRR_DEBUG_BREAK_IF(!Vertices);
return (*Vertices)[Indices[i]].Pos;
}
//! 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)
return (*Vertices)[Indices[i]].Normal;
else
return core::vector3df();
_IRR_DEBUG_BREAK_IF(!Vertices);
return (*Vertices)[Indices[i]].Normal;
}
//! 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)
return (*Vertices)[Indices[i]].TCoords;
else
return core::vector2df();
_IRR_DEBUG_BREAK_IF(!Vertices);
return (*Vertices)[Indices[i]].TCoords;
}
//! returns texture coord of vertex i