Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit 8985c2b

Browse files
Ensure Space Pins relocate on app restart
1 parent 1249403 commit 8985c2b

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

WLT_Project/Plugins/WorldLockingTools/Source/WorldLockingTools/Private/FragmentManager.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ namespace WorldLockingTools
121121
fragment->AddAttachmentPoint(target);
122122
}
123123

124+
// Update space pins now that a valid fragment exists.
125+
FAlignmentManager::OnAlignmentManagerLoad.Broadcast();
126+
124127
// All pending must now be in a good home fragment, clear the to-do list.
125128
pendingAttachments.Empty();
126129
}

WLT_Project/Plugins/WorldLockingTools/Source/WorldLockingTools/Private/SpacePin.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ void USpacePin::RestoreOnLoad()
271271
This->LockedPose = restorePose;
272272
}
273273
This->CheckAttachment();
274+
This->SendAlignmentData();
274275
}
275276
});
276277
}

WLT_Project/Plugins/WorldLockingTools/WorldLockingTools.uplugin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"FileVersion": 3,
33
"Version": 1,
4-
"VersionName": "1.0.1",
4+
"VersionName": "1.0.2",
55
"FriendlyName": "World Locking Tools",
66
"Description": "World Locking Tools provides a stable and reliable world-locked coordinate system, binding the virtual/holographic world to the physical world.",
77
"Category": "Mixed Reality",

0 commit comments

Comments
 (0)