Skip to content

Commit

Permalink
layer IsOn flag fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Oct 26, 2023
1 parent fbd3c03 commit 05473f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ACadSharp/IO/DWG/DwgStreamWriters/DwgObjectWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private void writeTable<T>(Table<T> table, bool register = true, bool writeEntri
this.writeEntries(table);
}

public void writeEntries<T>(Table<T> table)
private void writeEntries<T>(Table<T> table)
where T : TableEntry
{
foreach (var entry in table)
Expand Down
5 changes: 4 additions & 1 deletion ACadSharp/Tables/Layer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,10 @@ public LineType LineType
[DxfCodeValue(DxfReferenceType.Handle, 347)]
public Material Material { get; set; } //TODO: Implement ulong handles, change to internal or private, implement the material class

public bool IsOn { get; set; } //TODO: Is the same as PlotFlag???
/// <summary>
/// Indicates if the Layer is visible in the model
/// </summary>
public bool IsOn { get; set; } = true;

private LineType _lineType = LineType.Continuous;

Expand Down

0 comments on commit 05473f0

Please sign in to comment.