mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -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
|
// DisplayRegion, or an empty NodePath if no camera is
|
||||||
// associated.
|
// associated.
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
const NodePath &DisplayRegion::
|
NodePath DisplayRegion::
|
||||||
get_camera() const {
|
get_camera() const {
|
||||||
MutexHolder holder(_lock);
|
MutexHolder holder(_lock);
|
||||||
return _camera;
|
return _camera;
|
||||||
|
@ -73,7 +73,7 @@ PUBLISHED:
|
|||||||
GraphicsPipe *get_pipe() const;
|
GraphicsPipe *get_pipe() const;
|
||||||
|
|
||||||
void set_camera(const NodePath &camera);
|
void set_camera(const NodePath &camera);
|
||||||
const NodePath &get_camera() const;
|
NodePath get_camera() const;
|
||||||
|
|
||||||
void set_active(bool active);
|
void set_active(bool active);
|
||||||
INLINE bool is_active() const;
|
INLINE bool is_active() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user