Skip to content

Commit 85fed6d

Browse files
authored
Merge pull request o3de#17574 from aws-lumberyard-dev/daimini/RemoveStickDuplicateToCursor
Editor Preferences | Remove unused deep selection settings
2 parents 28fcdb8 + 39cdfc5 commit 85fed6d

File tree

2 files changed

+1
-31
lines changed

2 files changed

+1
-31
lines changed

Code/Editor/EditorPreferencesPageGeneral.cpp

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,7 @@ void CEditorPreferencesPage_General::Reflect(AZ::SerializeContext& serialize)
5353
serialize.Class<Undo>()
5454
->Version(2)
5555
->Field("UndoLevels", &Undo::m_undoLevels)
56-
->Field("UndoSliceOverrideSaves", &Undo::m_undoSliceOverrideSaveValue);;
57-
58-
serialize.Class<DeepSelection>()
59-
->Version(2)
60-
->Field("DeepSelectionRange", &DeepSelection::m_deepSelectionRange)
61-
->Field("StickDuplicate", &DeepSelection::m_stickDuplicate);
56+
->Field("UndoSliceOverrideSaves", &Undo::m_undoSliceOverrideSaveValue);
6257

6358
serialize.Class<SliceSettings>()
6459
->Version(1)
@@ -70,7 +65,6 @@ void CEditorPreferencesPage_General::Reflect(AZ::SerializeContext& serialize)
7065
->Field("Prefab Save Settings", &CEditorPreferencesPage_General::m_levelSaveSettings)
7166
->Field("Messaging", &CEditorPreferencesPage_General::m_messaging)
7267
->Field("Undo", &CEditorPreferencesPage_General::m_undo)
73-
->Field("Deep Selection", &CEditorPreferencesPage_General::m_deepSelection)
7468
->Field("Slice Settings", &CEditorPreferencesPage_General::m_sliceSettings);
7569

7670

@@ -113,12 +107,6 @@ void CEditorPreferencesPage_General::Reflect(AZ::SerializeContext& serialize)
113107
->Attribute(AZ::Edit::Attributes::Max, 10000)
114108
->DataElement(AZ::Edit::UIHandlers::CheckBox, &Undo::m_undoSliceOverrideSaveValue, "Undo Slice Override Saves", "Allow slice saves to be undone");
115109

116-
editContext->Class<DeepSelection>("Selection", "")
117-
->DataElement(AZ::Edit::UIHandlers::CheckBox, &DeepSelection::m_stickDuplicate, "Stick duplicate to cursor", "Stick duplicate to cursor")
118-
->DataElement(AZ::Edit::UIHandlers::SpinBox, &DeepSelection::m_deepSelectionRange, "Deep selection range", "Deep Selection Range")
119-
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
120-
->Attribute(AZ::Edit::Attributes::Max, 1000.0f);
121-
122110
editContext->Class<SliceSettings>("Slices", "")
123111
->DataElement(AZ::Edit::UIHandlers::CheckBox, &SliceSettings::m_slicesDynamicByDefault, "New Slices Dynamic By Default", "When creating slices, they will be set to dynamic by default");
124112

@@ -129,7 +117,6 @@ void CEditorPreferencesPage_General::Reflect(AZ::SerializeContext& serialize)
129117
->DataElement(AZ::Edit::UIHandlers::Default, &CEditorPreferencesPage_General::m_levelSaveSettings, "Prefab Save Settings", "File>Save")
130118
->DataElement(AZ::Edit::UIHandlers::Default, &CEditorPreferencesPage_General::m_messaging, "Messaging", "Messaging")
131119
->DataElement(AZ::Edit::UIHandlers::Default, &CEditorPreferencesPage_General::m_undo, "Undo", "Undo Preferences")
132-
->DataElement(AZ::Edit::UIHandlers::Default, &CEditorPreferencesPage_General::m_deepSelection, "Selection", "Selection")
133120
->DataElement(AZ::Edit::UIHandlers::Default, &CEditorPreferencesPage_General::m_sliceSettings, "Slices", "Slice Settings");
134121
}
135122
}
@@ -180,10 +167,6 @@ void CEditorPreferencesPage_General::OnApply()
180167

181168
gSettings.m_undoSliceOverrideSaveValue = m_undo.m_undoSliceOverrideSaveValue;
182169

183-
//deep selection
184-
gSettings.deepSelectionSettings.fRange = m_deepSelection.m_deepSelectionRange;
185-
gSettings.deepSelectionSettings.bStickDuplicate = m_deepSelection.m_stickDuplicate;
186-
187170
//slices
188171
gSettings.sliceSettings.dynamicByDefault = m_sliceSettings.m_slicesDynamicByDefault;
189172
}
@@ -214,10 +197,6 @@ void CEditorPreferencesPage_General::InitializeSettings()
214197
m_undo.m_undoLevels = gSettings.undoLevels;
215198
m_undo.m_undoSliceOverrideSaveValue = gSettings.m_undoSliceOverrideSaveValue;
216199

217-
//deep selection
218-
m_deepSelection.m_deepSelectionRange = gSettings.deepSelectionSettings.fRange;
219-
m_deepSelection.m_stickDuplicate = gSettings.deepSelectionSettings.bStickDuplicate;
220-
221200
//slices
222201
m_sliceSettings.m_slicesDynamicByDefault = gSettings.sliceSettings.dynamicByDefault;
223202
}

Code/Editor/EditorPreferencesPageGeneral.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,6 @@ class CEditorPreferencesPage_General
8383
bool m_undoSliceOverrideSaveValue;
8484
};
8585

86-
struct DeepSelection
87-
{
88-
AZ_TYPE_INFO(DeepSelection, "{225616BF-66DE-41EC-9FDD-F5A104112547}")
89-
90-
float m_deepSelectionRange;
91-
bool m_stickDuplicate;
92-
};
93-
9486
struct SliceSettings
9587
{
9688
AZ_TYPE_INFO(SliceSettings, "{8505CCC1-874C-4389-B51A-B9E5FF70CFDA}")
@@ -102,7 +94,6 @@ class CEditorPreferencesPage_General
10294
LevelSaveSettings m_levelSaveSettings;
10395
Messaging m_messaging;
10496
Undo m_undo;
105-
DeepSelection m_deepSelection;
10697
SliceSettings m_sliceSettings;
10798
QIcon m_icon;
10899
};

0 commit comments

Comments
 (0)