NodePaths should be returned as concretes, not references

This commit is contained in:
David Rose 2004-03-31 23:32:33 +00:00
parent 0c85764323
commit e6ea294429
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ set_camera(const NodePath &camera) {
// DisplayRegion, or an empty NodePath if no camera is
// associated.
////////////////////////////////////////////////////////////////////
const NodePath &DisplayRegion::
NodePath DisplayRegion::
get_camera() const {
MutexHolder holder(_lock);
return _camera;

View File

@ -73,7 +73,7 @@ PUBLISHED:
GraphicsPipe *get_pipe() const;
void set_camera(const NodePath &camera);
const NodePath &get_camera() const;
NodePath get_camera() const;
void set_active(bool active);
INLINE bool is_active() const;