mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
added make_copy on polylightnode, more cleanup coming up
This commit is contained in:
parent
cf4d30e748
commit
00dbb1617b
@ -56,6 +56,19 @@ PandaNode(name)
|
|||||||
_sin_freq = 2.0;
|
_sin_freq = 2.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: PolylightNode::make_copy
|
||||||
|
// Access: Public, Virtual
|
||||||
|
// Description: Returns a newly-allocated Node that is a shallow copy
|
||||||
|
// of this one. It will be a different Node pointer,
|
||||||
|
// but its internal data may or may not be shared with
|
||||||
|
// that of the original Node.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
PandaNode *PolylightNode::
|
||||||
|
make_copy() const {
|
||||||
|
return new PolylightNode(*this);
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: PolylightNode::Constructor
|
// Function: PolylightNode::Constructor
|
||||||
// Access: Public
|
// Access: Public
|
||||||
|
@ -103,6 +103,7 @@ PUBLISHED:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
Colorf flicker() const;
|
Colorf flicker() const;
|
||||||
|
virtual PandaNode *make_copy() const;
|
||||||
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user