Commit 667a64e5 authored by hybrid's avatar hybrid

Fix another const issue with the selector patch

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3721 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0a18c65e
...@@ -112,7 +112,7 @@ public: ...@@ -112,7 +112,7 @@ public:
//! Get number of TriangleSelectors that are part of this one //! Get number of TriangleSelectors that are part of this one
/** Only useful for MetaTriangleSelector, others return 1 /** Only useful for MetaTriangleSelector, others return 1
*/ */
virtual const u32 getSelectorCount() const = 0; virtual u32 getSelectorCount() const = 0;
//! Get TriangleSelector based on index based on getSelectorCount //! Get TriangleSelector based on index based on getSelectorCount
/** Only useful for MetaTriangleSelector, others return 'this' or 0 /** Only useful for MetaTriangleSelector, others return 'this' or 0
......
...@@ -155,7 +155,7 @@ ISceneNode* CMetaTriangleSelector::getSceneNodeForTriangle(u32 triangleIndex) co ...@@ -155,7 +155,7 @@ ISceneNode* CMetaTriangleSelector::getSceneNodeForTriangle(u32 triangleIndex) co
/* Return the number of TriangleSelectors that are inside this one, /* Return the number of TriangleSelectors that are inside this one,
Only useful for MetaTriangleSelector others return 1 Only useful for MetaTriangleSelector others return 1
*/ */
const u32 CMetaTriangleSelector::getSelectorCount() const u32 CMetaTriangleSelector::getSelectorCount() const
{ {
return TriangleSelectors.size(); return TriangleSelectors.size();
} }
......
...@@ -55,7 +55,7 @@ public: ...@@ -55,7 +55,7 @@ public:
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const; virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const;
// Get the number of TriangleSelectors that are part of this one // Get the number of TriangleSelectors that are part of this one
virtual const u32 getSelectorCount() const; virtual u32 getSelectorCount() const;
// Get the TriangleSelector based on index based on getSelectorCount // Get the TriangleSelector based on index based on getSelectorCount
virtual ITriangleSelector* getSelector(u32 index); virtual ITriangleSelector* getSelector(u32 index);
......
...@@ -200,7 +200,7 @@ ISceneNode* CTerrainTriangleSelector::getSceneNodeForTriangle( ...@@ -200,7 +200,7 @@ ISceneNode* CTerrainTriangleSelector::getSceneNodeForTriangle(
/* Get the number of TriangleSelectors that are part of this one. /* Get the number of TriangleSelectors that are part of this one.
Only useful for MetaTriangleSelector others return 1 Only useful for MetaTriangleSelector others return 1
*/ */
const u32 CTerrainTriangleSelector::getSelectorCount() const u32 CTerrainTriangleSelector::getSelectorCount() const
{ {
return 1; return 1;
} }
......
...@@ -58,7 +58,7 @@ public: ...@@ -58,7 +58,7 @@ public:
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const; virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const;
// Get the number of TriangleSelectors that are part of this one // Get the number of TriangleSelectors that are part of this one
virtual const u32 getSelectorCount() const; virtual u32 getSelectorCount() const;
// Get the TriangleSelector based on index based on getSelectorCount // Get the TriangleSelector based on index based on getSelectorCount
virtual ITriangleSelector* getSelector(u32 index); virtual ITriangleSelector* getSelector(u32 index);
......
...@@ -234,7 +234,7 @@ s32 CTriangleSelector::getTriangleCount() const ...@@ -234,7 +234,7 @@ s32 CTriangleSelector::getTriangleCount() const
/* Get the number of TriangleSelectors that are part of this one. /* Get the number of TriangleSelectors that are part of this one.
Only useful for MetaTriangleSelector others return 1 Only useful for MetaTriangleSelector others return 1
*/ */
const u32 CTriangleSelector::getSelectorCount() const u32 CTriangleSelector::getSelectorCount() const
{ {
return 1; return 1;
} }
......
...@@ -55,7 +55,7 @@ public: ...@@ -55,7 +55,7 @@ public:
virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const { return SceneNode; } virtual ISceneNode* getSceneNodeForTriangle(u32 triangleIndex) const { return SceneNode; }
// Get the number of TriangleSelectors that are part of this one // Get the number of TriangleSelectors that are part of this one
virtual const u32 getSelectorCount() const; virtual u32 getSelectorCount() const;
// Get the TriangleSelector based on index based on getSelectorCount // Get the TriangleSelector based on index based on getSelectorCount
virtual ITriangleSelector* getSelector(u32 index); virtual ITriangleSelector* getSelector(u32 index);
......
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