mirror of
https://github.com/geode-sdk/geode.git
synced 2025-04-16 06:55:04 -04:00
add isvisible to scrolllayer visit
This commit is contained in:
parent
eeeedbb9c4
commit
ad9abf13e3
1 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ void GenericContentLayer::setPosition(CCPoint const& pos) {
|
|||
}
|
||||
|
||||
void ScrollLayer::visit() {
|
||||
if (m_cutContent) {
|
||||
if (m_cutContent && this->isVisible()) {
|
||||
auto rect = CCRect(this->getPosition(), this->getScaledContentSize());
|
||||
|
||||
if (this->getParent()) {
|
||||
|
@ -40,7 +40,7 @@ void ScrollLayer::visit() {
|
|||
|
||||
CCNode::visit();
|
||||
|
||||
if (m_cutContent) {
|
||||
if (m_cutContent && this->isVisible()) {
|
||||
glDisable(GL_SCISSOR_TEST);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue