==============================================================================
| 173 | |
| 174 | //============================================================================== |
| 175 | Node* ShapeNode::cloneNode(BodyNode* parent) const |
| 176 | { |
| 177 | ShapeNode* shapeNode = new ShapeNode(parent, Properties()); |
| 178 | shapeNode->duplicateAspects(this); |
| 179 | |
| 180 | shapeNode->copy(this); |
| 181 | if (const auto& shape = getShape()) |
| 182 | shapeNode->setShape(shape->clone()); |
| 183 | |
| 184 | if (mIK) |
| 185 | shapeNode->mIK = mIK->clone(shapeNode); |
| 186 | |
| 187 | return shapeNode; |
| 188 | } |
| 189 | |
| 190 | //============================================================================== |
| 191 | void ShapeNode::remove() |
nothing calls this directly
no test coverage detected