MSVC error C2440: 'static_cast': cannot convert from 'double' to 'PieceNodeAngle'.
--HG-- branch : develop
This commit is contained in:
parent
8332d4b15b
commit
4876560b5d
|
@ -270,7 +270,8 @@ void AbstractTest::VectorFromJson(const QString &json, QVector<VSAPoint> &vector
|
|||
QJsonValue angleValue = pointObject[angleKey];
|
||||
if (angleValue.isDouble())
|
||||
{
|
||||
point.SetAngleType(static_cast<PieceNodeAngle>(angleValue.toDouble(defaultAngle)));
|
||||
const int angle = static_cast<int>(angleValue.toDouble(defaultAngle));
|
||||
point.SetAngleType(static_cast<PieceNodeAngle>(angle));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user