It seems like mistake. ratio renamed to width.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-07-16 19:55:37 +03:00
parent 85e90504ef
commit 968996da86
3 changed files with 5 additions and 5 deletions

View File

@ -488,7 +488,7 @@ void DRW_Vport::parseCode(int code, dxfReader *reader){
height = reader->getDouble();
break;
case 41:
ratio = reader->getDouble();
width = reader->getDouble();
break;
case 42:
lensHeight = reader->getDouble();

View File

@ -466,7 +466,7 @@ public:
viewDir(),
viewTarget(),
height(),
ratio(),
width(),
lensHeight(),
frontClip(),
backClip(),
@ -492,7 +492,7 @@ public:
center.y = -0.16;
viewDir.z = 1;
height = 5.13732;
ratio = 2.4426877;
width = 2.4426877;
lensHeight = 50;
frontClip = backClip = snapAngle = twistAngle = 0.0;
viewMode = snap = grid = snapStyle = snapIsopair = 0;
@ -516,7 +516,7 @@ public:
DRW_Coord viewDir; /*!< view direction from target point, code 16, 26 & 36 */
DRW_Coord viewTarget; /*!< view target point, code 17, 27 & 37 */
double height; /*!< view height, code 40 */
double ratio; /*!< viewport aspect ratio, code 41 */
double width; /*!< view width, code 41 */
double lensHeight; /*!< lens height, code 42 */
double frontClip; /*!< front clipping plane, code 43 */
double backClip; /*!< back clipping plane, code 44 */

View File

@ -358,7 +358,7 @@ bool dxfRW::writeVport(DRW_Vport *ent){
writer->writeDouble(27, ent->viewTarget.z);
writer->writeDouble(37, ent->viewTarget.z);
writer->writeDouble(40, ent->height);
writer->writeDouble(41, ent->ratio);
writer->writeDouble(41, ent->width);
writer->writeDouble(42, ent->lensHeight);
writer->writeDouble(43, ent->frontClip);
writer->writeDouble(44, ent->backClip);