mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 21:46:34 +02:00
Fix AssignmentParentFinder not handling null parentID
This commit is contained in:
parent
1131222472
commit
46ed5f6479
1 changed files with 6 additions and 0 deletions
|
@ -13,6 +13,12 @@
|
|||
|
||||
SpatiallyNestableWeakPointer AssignmentParentFinder::find(QUuid parentID, bool& success) const {
|
||||
SpatiallyNestableWeakPointer parent;
|
||||
|
||||
if (parentID.isNull()) {
|
||||
success = true;
|
||||
return parent;
|
||||
}
|
||||
|
||||
// search entities
|
||||
parent = _tree->findEntityByEntityItemID(parentID);
|
||||
if (parent.expired()) {
|
||||
|
|
Loading…
Reference in a new issue