FreeCAD: master 0adfa0a7
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
abdullah | wmayer | master | 2014-08-27 14:58:35 | master fdb7de1d |
Changeset | Sketcher Bug fix: Arrows for symmetry constraint are back The arrows were there in the code, but at a certain point, code was written to set the this->imgHeight value programatically, based on whether it had text or not. As symmetry constraint does not have text the variable failed to initialize. Being zero, it did not pass the ASSERT in the render function, so it was not rendered. This includes Werner's fix for improver cast of a SoRayPickAction to SoGLRenderAction: SbVec2s vp_size = static_cast<SoGLRenderAction*>(action)->getViewportRegion().getWindowSize(); to SbVec2s vp_size = SoViewportRegionElement::get(state).getWindowSize(); At least sometimes tt is a SoRayPickAction because: When you move with the mouse over the sketcher (when in edit mode) you enter the method ViewProviderSketch::mouseMove. Inside there the method getPointOnRay is called to get a picked point underneath the cursor. Inside the latter method an instance of SoRayPickAction is created to traverse the scene graph. After a long cascade of function calls you finally enter SoDatumLabel::generatePrimitives(SoAction*). |
|||
mod - src/Mod/Sketcher/Gui/SoDatumLabel.cpp | Diff File | |||
mod - src/Mod/Sketcher/Gui/ViewProviderSketch.cpp | Diff File |