Skip to content

Commit d029ca5

Browse files
authored
Merge pull request #9646 from ltwlf/ltwlf/fix-tap-to-place-inspector
Remove orphaned properties from TapToPlaceInspector
2 parents 6e06145 + 5ab4d26 commit d029ca5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Assets/MRTK/SDK/Editor/Inspectors/Utilities/Solvers/TapToPlaceInspector.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ public class TapToPlaceInspector : UnityEditor.Editor
2828
private SerializedProperty onPlacingStopped;
2929

3030
// Advanced properties
31+
private SerializedProperty magneticSurfaces;
3132
private SerializedProperty updateLinkedTransformProperty;
3233
private SerializedProperty moveLerpTimeProperty;
3334
private SerializedProperty rotateLerpTimeProperty;
3435
private SerializedProperty scaleLerpTimeProperty;
35-
private SerializedProperty maintainScaleProperty;
36+
private SerializedProperty maintainScaleOnInitializationProperty;
3637
private SerializedProperty smoothingProperty;
3738
private SerializedProperty lifetimeProperty;
38-
private SerializedProperty magneticSurfaces;
3939

4040
private const string AdvancedPropertiesFoldoutKey = "TapToPlaceAdvancedProperties";
4141

4242
protected virtual void OnEnable()
4343
{
44-
instance = (TapToPlace)target;
44+
instance = (TapToPlace) target;
4545

4646
// Main Tap to Place Properties
4747
autoStart = serializedObject.FindProperty("autoStart");
@@ -60,7 +60,7 @@ protected virtual void OnEnable()
6060
moveLerpTimeProperty = serializedObject.FindProperty("moveLerpTime");
6161
rotateLerpTimeProperty = serializedObject.FindProperty("rotateLerpTime");
6262
scaleLerpTimeProperty = serializedObject.FindProperty("scaleLerpTime");
63-
maintainScaleProperty = serializedObject.FindProperty("maintainScale");
63+
maintainScaleOnInitializationProperty = serializedObject.FindProperty("maintainScaleOnInitialization");
6464
smoothingProperty = serializedObject.FindProperty("smoothing");
6565
lifetimeProperty = serializedObject.FindProperty("lifetime");
6666
magneticSurfaces = serializedObject.FindProperty("magneticSurfaces");
@@ -104,22 +104,22 @@ private void RenderCustomInspector()
104104
private void RenderAdvancedProperties()
105105
{
106106
// Render Advanced Settings
107-
if (InspectorUIUtility.DrawSectionFoldoutWithKey("Advanced Properties", AdvancedPropertiesFoldoutKey, MixedRealityStylesUtility.TitleFoldoutStyle, false))
107+
if (InspectorUIUtility.DrawSectionFoldoutWithKey("Advanced Properties", AdvancedPropertiesFoldoutKey,
108+
MixedRealityStylesUtility.TitleFoldoutStyle, false))
108109
{
109110
using (new EditorGUI.IndentLevelScope())
110111
{
111112
EditorGUILayout.Space();
112-
113113
EditorGUILayout.PropertyField(updateLinkedTransformProperty);
114114
EditorGUILayout.PropertyField(moveLerpTimeProperty);
115115
EditorGUILayout.PropertyField(rotateLerpTimeProperty);
116116
EditorGUILayout.PropertyField(scaleLerpTimeProperty);
117-
EditorGUILayout.PropertyField(maintainScaleProperty);
117+
EditorGUILayout.PropertyField(maintainScaleOnInitializationProperty);
118118
EditorGUILayout.PropertyField(smoothingProperty);
119119
EditorGUILayout.PropertyField(lifetimeProperty);
120120
EditorGUILayout.PropertyField(magneticSurfaces, true);
121121
}
122122
}
123123
}
124124
}
125-
}
125+
}

0 commit comments

Comments
 (0)