From Marin Platings and Robert Osfield, fix of Uniform unique ID by making osg::Object::setName() virtual.
This commit is contained in:
@@ -96,13 +96,13 @@ class OSG_EXPORT Object : public Referenced
|
||||
|
||||
|
||||
/** Set the name of object using C++ style string.*/
|
||||
inline void setName( const std::string& name ) { _name = name; }
|
||||
virtual void setName( const std::string& name ) { _name = name; }
|
||||
|
||||
/** Set the name of object using a C style string.*/
|
||||
inline void setName( const char* name )
|
||||
{
|
||||
if (name) _name = name;
|
||||
else _name.clear();
|
||||
if (name) setName(std::string(name));
|
||||
else setName(std::string());
|
||||
}
|
||||
|
||||
/** Get the name of object.*/
|
||||
|
||||
Reference in New Issue
Block a user