| 126 | } |
| 127 | |
| 128 | void DBSlot::_replaceDisplay(void* value, bool isArmatureDisplay) { |
| 129 | const auto container = s_cast<DragonBone*>(_armature->getDisplay()); |
| 130 | const auto prevNode = s_cast<DBSlotNode*>(value); |
| 131 | container->addChild(_node, prevNode->getOrder()); |
| 132 | container->removeChild(prevNode); |
| 133 | _textureScale = 1.0f; |
| 134 | } |
| 135 | |
| 136 | void DBSlot::_removeDisplay() { |
| 137 | _node->removeFromParent(); |
nothing calls this directly
no test coverage detected