realthunder / FreeCAD

Link branch FreeCAD
Other
763 stars 45 forks source link

Shadow lighting direction is reset incorrectly #948

Closed ftdt10 closed 6 months ago

ftdt10 commented 7 months ago

Is there an existing issue for this?

Version

0.21 (Development)

Full version info

OS: Ubuntu Core 22 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 2024.124.0.38947 (Git) Snap 127
Build type: Release
Branch: tag: 20240123stable
Hash: 0c0f69ad4806682096b51f7669d5f1cb83f9c7d7
Python 3.10.12, Qt 5.15.10, Coin 4.0.1rt, Vtk 7.1.1, OCC 7.7.1
Locale: English/United States (en_US)

Subproject(s) affected?

None

Problem description

if setting is changed in DocumentRoot-ViewTab-Shadow, lighting direction resets incorrectly. And if the document file is closed and reopened, the lighting direction is reset again.

Anything else?

No response

Code of Conduct

realthunder commented 6 months ago

Could you please provide some picture showing which parameters you've changed, and that changed before/after document reopened?

ftdt10 commented 6 months ago

More detail steps to reproduce

  1. run "menu-View-DrawStyle-Shadow", and run it again to show the directional light icon.
  2. change the direction of light by dragging the arrow in 3d view
  3. change "Light Intensity" parameter to other value, for example then the direction of the light is reset