Showing the changes to interface/src/InterfaceParentFinder.cpp (1 of 62 files). Show all
Unified · Split
| @@ -50,15 +50,6 @@ SpatiallyNestableWeakPointer InterfaceParentFinder::find(QUuid parentID, bool& s · 49 unmodified lines | ||
| 50 | 50 | return avatarManager->getMyAvatar(); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | − // search overlays | |
| 54 | − auto& overlays = qApp->getOverlays(); | |
| 55 | − auto overlay = overlays.getOverlay(parentID); | |
| 56 | − parent = std::dynamic_pointer_cast<SpatiallyNestable>(overlay); // this will return nullptr for non-3d overlays | |
| 57 | − if (!parent.expired()) { | |
| 58 | − success = true; | |
| 59 | − return parent; | |
| 60 | − } | |
| 61 | − | |
| 62 | 53 | success = false; |
| 63 | 54 | return parent; |
| 64 | 55 | } |