| 686 | :param SDObject child: The new child to add |
| 687 | )"); |
| 688 | inline void DuplicateAndAddChild(const SDObject *child) |
| 689 | { |
| 690 | // if we're adding to a lazy-generated array we can't have a mixture between lazy generation and |
| 691 | // fully owned children. This shouldn't happen, but just in case we'll evaluate the lazy array |
| 692 | // here. |
| 693 | PopulateAllChildren(); |
| 694 | AddAndOwnChild(child->Duplicate()); |
| 695 | } |
| 696 | DOCUMENT(R"(Find a child object by a given name. If no matching child is found, ``None`` is |
| 697 | returned. |
| 698 |
no test coverage detected