Read layer settings for block from block's settings.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-07-17 17:25:38 +03:00
parent c84f7ef828
commit cc0d6d994b

View File

@ -1343,7 +1343,7 @@ bool dxfRW::writeBlock(DRW_Block *bk){
}
writer->writeString(100, "AcDbEntity");
}
writer->writeString(8, "0");
writer->writeString(8, bk->layer);
if (version > DRW::AC1009) {
writer->writeString(100, "AcDbBlockEnd");
}
@ -1358,7 +1358,7 @@ bool dxfRW::writeBlock(DRW_Block *bk){
}
writer->writeString(100, "AcDbEntity");
}
writer->writeString(8, "0");
writer->writeString(8, bk->layer);
if (version > DRW::AC1009) {
writer->writeString(100, "AcDbBlockBegin");
writer->writeUtf8String(2, bk->name);