Browse Source

Fixed restore active layer

flabbet 4 years ago
parent
commit
20c8fab4ae
1 changed files with 1 additions and 1 deletions
  1. 1 1
      PixiEditor/Models/DataHolders/Document.cs

+ 1 - 1
PixiEditor/Models/DataHolders/Document.cs

@@ -490,7 +490,7 @@ namespace PixiEditor.Models.DataHolders
                 Layer layer = layers[i];
 
                 Layers.Insert(layersData[i].LayerIndex, layer);
-                if (layer.IsActive)
+                if (layersData[i].IsActive)
                 {
                     SetActiveLayer(Layers.IndexOf(layer));
                 }