Skip to content

Commit 3c0fc2d

Browse files
committed
improved PyDbEvalVariant
1 parent a630c8d commit 3c0fc2d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

PyRxCore/PyDbEval.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ void PyDbEvalVariant::setPoint2d(AcDb::DxfCode groupcode, const AcGePoint2d& val
193193
impObj()->restype = groupcode;
194194
impObj()->resval.rpoint[0] = value[0];
195195
impObj()->resval.rpoint[1] = value[1];
196+
impObj()->resval.rpoint[2] = 0.0;
196197
}
197198

198199
double PyDbEvalVariant::getDouble()

PyRxCore/PyDbEval.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class PyDbEvalVariant : public PyRxObject
3333
bool operator == (const PyDbEvalVariant& val) const;
3434
bool operator != (const PyDbEvalVariant& val) const;
3535

36+
//TODO: overload with default groupcodes;
3637
void setDouble(AcDb::DxfCode groupcode, double value);
3738
void setInt16(AcDb::DxfCode groupcode, short value);
3839
void setInt32(AcDb::DxfCode groupcode, Adesk::Int32 value);
@@ -107,9 +108,7 @@ class PyDbAcValue : public PyRxObject
107108
PyDbAcValue(const PyDbObjectId& id);
108109
PyDbAcValue(const AcGePoint2d& pt);
109110
PyDbAcValue(const AcGePoint3d& pt);
110-
111111
PyDbAcValue(const AcValue& pt);
112-
113112
PyDbAcValue(AcValue* ptr, bool autoDelete);
114113
~PyDbAcValue() = default;
115114

@@ -147,5 +146,4 @@ class PyDbAcValue : public PyRxObject
147146
AcValue* impObj(const std::source_location& src = std::source_location::current()) const;
148147
};
149148

150-
151149
#pragma pack (pop)

0 commit comments

Comments
 (0)