fix the wrong additional layer in the matrix

This commit is contained in:
Cristhofer Marques
2022-10-11 13:30:49 -03:00
parent 52904cbe3e
commit 77c6daf240

View File

@@ -24,7 +24,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
public override void Initialize(LayoutElementsContainer layout)
{
string[] layerNames = LayersAndTagsSettings.GetCurrentLayers();
int layersCount = Math.Max(4, layerNames.Length);
int layersCount = layerNames.Length;
_checkBoxes = new List<CheckBox>();
_layersCount = layersCount;