Making the assignment more uniform

This commit is contained in:
Andreas Scherren 2024-10-26 18:31:00 +02:00
parent 3c873d04ca
commit 3583f83082

View File

@ -31,6 +31,7 @@ namespace TriInspector.Elements
_property = property; _property = property;
_alwaysExpanded = settings?.AlwaysExpanded ?? false; _alwaysExpanded = settings?.AlwaysExpanded ?? false;
_fixDefaultValue = settings?.FixDefaultValue ?? false;
_showElementLabels = settings?.ShowElementLabels ?? false; _showElementLabels = settings?.ShowElementLabels ?? false;
_reorderableListGui = new ReorderableList(null, _property.ArrayElementType) _reorderableListGui = new ReorderableList(null, _property.ArrayElementType)
{ {
@ -44,7 +45,6 @@ namespace TriInspector.Elements
onRemoveCallback = RemoveElementCallback, onRemoveCallback = RemoveElementCallback,
onReorderCallbackWithDetails = ReorderCallback, onReorderCallbackWithDetails = ReorderCallback,
}; };
_fixDefaultValue = settings?.FixDefaultValue ?? false;
if (!_reorderableListGui.displayAdd && !_reorderableListGui.displayRemove) if (!_reorderableListGui.displayAdd && !_reorderableListGui.displayRemove)
{ {