MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / setShowDebug

Method setShowDebug

Source/Node/DragonBone.cpp:480–495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480void DragonBone::setShowDebug(bool var) {
481 AssertIf(_flags.isOn(Node::Cleanup), "can not operate on an invalid DragonBone");
482 if (var) {
483 if (!_debugLine) {
484 _debugLine = Line::create();
485 _debugLine->setOrder(std::numeric_limits<int>::max());
486 addChild(_debugLine);
487 }
488 } else {
489 if (_debugLine) {
490 _debugLine->removeFromParent();
491 _debugLine = nullptr;
492 }
493 }
494 Node::setShowDebug(var);
495}
496
497DragonBone::DBArmatureProxy* DragonBone::getArmatureProxy() const noexcept {
498 return _armatureProxy.get();

Callers

nothing calls this directly

Calls 6

addChildFunction · 0.85
isOnMethod · 0.80
removeFromParentMethod · 0.80
setOrderMethod · 0.65
createFunction · 0.50
maxFunction · 0.50

Tested by

no test coverage detected