| Summary: | SphereFigureShape fill and outline color get not applied | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | fabisiew |
| Component: | Gef3d | Assignee: | Project Inbox <gef3d.draw3d-inbox> |
| Status: | NEW --- | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
Build Identifier: M20100211-1343 In org.eclipse.draw3d.shapes.SphereShape in methods private void renderFill(Graphics3D i_g3d) and private void renderOutline(Graphics3D i_g3d) the color settings are hard coded in the first line of the methods i_g3d.glColor4f(0, 0, 0, 0.5f); while it should be i_g3d.glColor(m_fillColor, m_alpha); Reproducible: Always Steps to Reproduce: 1.Create 3DEditor which displays SphereShapes 2.In the EditPart-Class of the Figure set background and foreground color in refreshVisuals method: @Override protected void refreshVisuals() { IFigure fig = getFigure(); fig.setBackgroundColor(EditorUtil.getSWTColor(...)); fig.setForegroundColor(EditorUtil.getSWTColor(...)); super.refreshVisuals(); } 3. Problem: SphereFigure remains blue (fill color) with red outline color