Browse Source

Fix misspelling of 'Mask' as 'Main' that caused a crash

Equbuxu 1 year ago
parent
commit
2a33e3ae48

+ 1 - 1
src/ChunkyImageLib/DataHolders/AffectedArea.cs

@@ -19,7 +19,7 @@ public struct AffectedArea
     public HashSet<VecI> Chunks { get; set; }
 
     /// <summary>
-    /// A rectangle in global full-scale coordinat
+    /// A rectangle in global full-scale coordinates
     /// </summary>
     public RectI? GlobalArea { get; set; }
 

+ 1 - 1
src/PixiEditor/Models/Rendering/MemberPreviewUpdater.cs

@@ -563,7 +563,7 @@ internal class MemberPreviewUpdater
                 continue;
 
             if (tightBounds is null)
-                tightBounds = lastMainPreviewTightBounds[guid];
+                tightBounds = lastMaskPreviewTightBounds[guid];
 
             var previewSize = StructureMemberViewModel.CalculatePreviewSize(tightBounds.Value.Size);
             float scaling = (float)previewSize.X / tightBounds.Value.Width;