[TD]CI clang warnings
This commit is contained in:
@@ -79,11 +79,11 @@ DrawViewMulti::DrawViewMulti()
|
||||
static const char *group = "Projection";
|
||||
|
||||
//properties that affect Geometry
|
||||
ADD_PROPERTY_TYPE(Sources ,(nullptr),group,App::Prop_None,"3D Shapes to view");
|
||||
ADD_PROPERTY_TYPE(Sources ,(nullptr), group, App::Prop_None, "3D Shapes to view");
|
||||
Sources.setScope(App::LinkScope::Global);
|
||||
//Source is replaced by Sources in Multi
|
||||
Source.setStatus(App::Property::ReadOnly,true);
|
||||
Source.setStatus(App::Property::Hidden,true);
|
||||
Source.setStatus(App::Property::ReadOnly, true);
|
||||
Source.setStatus(App::Property::Hidden, true);
|
||||
|
||||
geometryObject = nullptr;
|
||||
}
|
||||
@@ -104,7 +104,7 @@ short DrawViewMulti::mustExecute() const
|
||||
void DrawViewMulti::onChanged(const App::Property* prop)
|
||||
{
|
||||
if (!isRestoring()) {
|
||||
//Base::Console().Message("TRACE - DVM::onChanged(%s) - %s\n",prop->getName(),Label.getValue());
|
||||
//Base::Console().Message("TRACE - DVM::onChanged(%s) - %s\n", prop->getName(), Label.getValue());
|
||||
if (prop == &Sources) {
|
||||
const std::vector<App::DocumentObject*>& links = Sources.getValues();
|
||||
if (!links.empty()) {
|
||||
@@ -138,24 +138,24 @@ App::DocumentObjectExecReturn *DrawViewMulti::execute()
|
||||
try {
|
||||
inputCenter = TechDraw::findCentroid(comp,
|
||||
Direction.getValue());
|
||||
shapeCentroid = Base::Vector3d(inputCenter.X(),inputCenter.Y(),inputCenter.Z());
|
||||
shapeCentroid = Base::Vector3d(inputCenter.X(), inputCenter.Y(), inputCenter.Z());
|
||||
TopoDS_Shape mirroredShape = TechDraw::mirrorShape(comp,
|
||||
inputCenter,
|
||||
getScale());
|
||||
gp_Ax2 viewAxis = getViewAxis(Base::Vector3d(inputCenter.X(),inputCenter.Y(),inputCenter.Z()),Direction.getValue());
|
||||
if (!DrawUtil::fpCompare(Rotation.getValue(),0.0)) {
|
||||
gp_Ax2 viewAxis = getViewAxis(Base::Vector3d(inputCenter.X(), inputCenter.Y(), inputCenter.Z()), Direction.getValue());
|
||||
if (!DrawUtil::fpCompare(Rotation.getValue(), 0.0)) {
|
||||
mirroredShape = TechDraw::rotateShape(mirroredShape,
|
||||
viewAxis,
|
||||
Rotation.getValue());
|
||||
}
|
||||
geometryObject = buildGeometryObject(mirroredShape,viewAxis);
|
||||
geometryObject = buildGeometryObject(mirroredShape, viewAxis);
|
||||
|
||||
#if MOD_TECHDRAW_HANDLE_FACES
|
||||
extractFaces();
|
||||
#endif //#if MOD_TECHDRAW_HANDLE_FACES
|
||||
}
|
||||
catch (Standard_Failure& e1) {
|
||||
Base::Console().Log("LOG - DVM::execute - projection failed for %s - %s **\n",getNameInDocument(),e1.GetMessageString());
|
||||
Base::Console().Log("LOG - DVM::execute - projection failed for %s - %s **\n", getNameInDocument(), e1.GetMessageString());
|
||||
return new App::DocumentObjectExecReturn(e1.GetMessageString());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user