It must also be possible to enter the full angle value of the multi-rotation, with a toggle button defining the semantic of the angle value (either full rotation or between two consecutive repetitions).
For consistency, it should be the same for multi-translation.
#define PI 3.1415926535897932
SketchPlugin_MultiRotation::SketchPlugin_MultiRotation()
-: myBlockAngle(true)
+: myBlockAngle(false)
{
}
}
else if (theID == NUMBER_OF_OBJECTS_ID()) {
if (attribute(NUMBER_OF_OBJECTS_ID())->isInitialized() &&
- attribute(ANGLE_FULL_ID())->isInitialized() &&
attribute(ANGLE_ID())->isInitialized() &&
attribute(ANGLE_TYPE())->isInitialized()) {
AttributeStringPtr aMethodTypeAttr = string(ANGLE_TYPE());
const int& theValue,
const bool toMultiply)
{
- if (theValue == 0)
+ if (theValue == 0 || !theFirstAngleAttribute->isInitialized())
return;
AttributeDoublePtr aDoubleFirstAttr = std::dynamic_pointer_cast<ModelAPI_AttributeDouble>(