prevent uv scroll combining

This commit is contained in:
Zachary Pavlov 2009-07-23 21:04:27 +00:00
parent 5d77dca8a5
commit c93ddf0346
2 changed files with 12 additions and 0 deletions

View File

@ -148,3 +148,14 @@ bool UvScrollNode::
safe_to_flatten() const {
return false;
}
////////////////////////////////////////////////////////////////////
// Function: UvScrollNode::safe_to_combine
// Access: Public, Virtual
// Description: Returns true if it is generally safe to combine this
// with other nodes, which it isn't, so don't. Ever.
////////////////////////////////////////////////////////////////////
bool UvScrollNode::
safe_to_combine() const {
return false;
}

View File

@ -36,6 +36,7 @@ protected:
public:
virtual PandaNode *make_copy() const;
virtual bool safe_to_flatten() const;
virtual bool safe_to_combine() const;
virtual bool cull_callback(CullTraverser *trav, CullTraverserData &data);
PUBLISHED: