Gui: if an expression is set for Euler angles in the placement dialog then evaluate the expression instead of determining the angles from the rotation
See forum thread: https://forum.freecadweb.org/viewtopic.php?f=3&t=72522
This commit is contained in:
@@ -658,6 +658,10 @@ void Placement::bindObject()
|
||||
ui->yawAngle ->bind(App::ObjectIdentifier::parse(obj, propertyName + std::string(".Rotation.Yaw")));
|
||||
ui->pitchAngle->bind(App::ObjectIdentifier::parse(obj, propertyName + std::string(".Rotation.Pitch")));
|
||||
ui->rollAngle ->bind(App::ObjectIdentifier::parse(obj, propertyName + std::string(".Rotation.Roll")));
|
||||
|
||||
ui->yawAngle->evaluateExpression();
|
||||
ui->pitchAngle->evaluateExpression();
|
||||
ui->rollAngle->evaluateExpression();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user