mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
NodePaths should be returned as concretes, not references
This commit is contained in:
parent
0c85764323
commit
e6ea294429
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user