Node::draw and Node::visit use wrong arg type. (#18970)

Should we use `FLAGS_TRANSFORM_DIRTY` here?
This commit is contained in:
ggggamer 2018-08-06 13:46:31 +08:00 committed by leda
parent bad8091e99
commit cddcf545db
1 changed files with 2 additions and 2 deletions

View File

@ -1189,7 +1189,7 @@ void Node::sortAllChildren()
void Node::draw()
{
auto renderer = _director->getRenderer();
draw(renderer, _modelViewTransform, true);
draw(renderer, _modelViewTransform, FLAGS_TRANSFORM_DIRTY);
}
void Node::draw(Renderer* /*renderer*/, const Mat4 & /*transform*/, uint32_t /*flags*/)
@ -1200,7 +1200,7 @@ void Node::visit()
{
auto renderer = _director->getRenderer();
auto& parentTransform = _director->getMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_MODELVIEW);
visit(renderer, parentTransform, true);
visit(renderer, parentTransform, FLAGS_TRANSFORM_DIRTY);
}
uint32_t Node::processParentFlags(const Mat4& parentTransform, uint32_t parentFlags)