Add const back in the function
This commit is contained in:
@@ -201,7 +201,7 @@ SGMaterial::load_texture ( int n )
|
|||||||
}
|
}
|
||||||
|
|
||||||
ssgSimpleState *
|
ssgSimpleState *
|
||||||
SGMaterial::get_state (int n)
|
SGMaterial::get_state (int n) const
|
||||||
{
|
{
|
||||||
if (_status.size() == 0) {
|
if (_status.size() == 0) {
|
||||||
SG_LOG( SG_GENERAL, SG_WARN, "No state available.");
|
SG_LOG( SG_GENERAL, SG_WARN, "No state available.");
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ public:
|
|||||||
/**
|
/**
|
||||||
* Get the textured state.
|
* Get the textured state.
|
||||||
*/
|
*/
|
||||||
virtual ssgSimpleState *get_state (int n = -1);
|
virtual ssgSimpleState *get_state (int n = -1) const;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user