Sebastien Grignard, fixed getMember methods to properly use const type.
This commit is contained in:
@@ -61,7 +61,7 @@ class SG_EXPORT ClipPlane : public StateAttribute
|
||||
return 0; // Passed all the above comparison macros, so must be equal.
|
||||
}
|
||||
|
||||
virtual unsigned int getMember() { return _clipPlaneNum; }
|
||||
virtual unsigned int getMember() const { return _clipPlaneNum; }
|
||||
|
||||
virtual bool getModeUsage(ModeUsage& usage) const
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ class SG_EXPORT Light : public StateAttribute
|
||||
return 0; // passed all the above comparison macro's, must be equal.
|
||||
}
|
||||
|
||||
virtual unsigned int getMember() { return _lightnum; }
|
||||
virtual unsigned int getMember() const { return _lightnum; }
|
||||
|
||||
virtual bool getModeUsage(ModeUsage& usage) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user