Files
create/src/Mod
wmayer 12ef38e66f Fix handling of transparency / Restore colour per face
The Materials module does a conversion from float to double when saving the transparency and again a conversion from double to float to double
when restoring it. This causes a considerable loss of accuracy so that the representation in percent leads to different numbers.

Using consistently some helper functions to do a proper conversion from float to long and back fixes the problem.

The new property ShapeAppearance is a PropertyMaterialList and always read after the DiffuseColor property when restoring a document.
Thus, the  method onChanged() doesn't override DiffuseColor when restoring a document. Additionally, the method finishRestoring() is re-implemented
to set the colours per face in case DiffuseColor has defined multiple colors.
2024-04-10 13:32:58 +02:00
..
2024-04-08 18:04:37 +02:00
2024-04-04 07:39:58 -05:00
2024-04-04 07:39:58 -05:00
2024-03-25 18:08:22 -05:00
2024-04-09 22:15:51 +02:00
2024-03-05 08:54:36 -06:00
2024-04-04 07:39:58 -05:00
2024-03-05 08:54:36 -06:00
2024-03-25 18:08:22 -05:00
2024-03-04 11:18:41 -06:00