Skip to content

Commit 0db78fb

Browse files
committed
Minor Solver scene fixes
1 parent ba03a46 commit 0db78fb

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Assets/HoloToolkit-Examples/Utilities/Scenes/SolverExamples.unity

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,6 +1700,11 @@ Prefab:
17001700
propertyPath: hideThisObject
17011701
value:
17021702
objectReference: {fileID: 37845493}
1703+
- target: {fileID: 114459743357777030, guid: 687094229f7a92743bd68e3e190259ae,
1704+
type: 2}
1705+
propertyPath: updateSolverTargetToClickSource
1706+
value: 0
1707+
objectReference: {fileID: 0}
17031708
m_RemovedComponents: []
17041709
m_ParentPrefab: {fileID: 100100000, guid: 687094229f7a92743bd68e3e190259ae, type: 2}
17051710
m_IsPrefabParent: 0

Assets/HoloToolkit/Utilities/Scripts/Editor/SolverHandlerEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ public override void OnInspectorGUI()
5050

5151
serializedObject.ApplyModifiedProperties();
5252

53-
if (trackedObjectChanged)
53+
if (Application.isPlaying && trackedObjectChanged)
5454
{
5555
solverHandler.TransformTarget = null;
5656
solverHandler.AttachToNewTrackedObject();
5757
}
5858

59-
if (additionalOffsetChanged)
59+
if (Application.isPlaying && additionalOffsetChanged)
6060
{
6161
solverHandler.AdditionalOffset = additionalOffsetProperty.vector3Value;
6262
solverHandler.AdditionalRotation = additionalRotationProperty.vector3Value;

0 commit comments

Comments
 (0)