Open maxwxyz opened 7 months ago
ShapeColor is implemented as a custom attribute. There should be no issue. But of course that doesn't mean there isn't.
Please include simple steps to reproduce as I'm not familiar with the workbench
I'm not sure if related to Material but it worked with the last weekly build before the Material merge. Just select any edge or point and try any commands, no feature is working. You can create a base shape with the right button and select another edge and click e.g. bend:
if shapeColor no longer available it will break Fasteners as well. Isn't it backward compatible?
With a quick test, Fasteners WB works as usual. Maybe there was another change introduced?
@maxwxyz Do you have the latest version? In the latest version (as of yesterday) I added an option to set custom default color for fasteners in the preferences.
@shaise you are right, I was using 0.5.15. But also adding or moving fasterners with the 0.5.16 works fine. The default color seems to have no effect though, or does it need a restart? Edit: Also with a restart the default color setting in the preferences has no effect. But there are no errors. Maybe there could be an option to set the default material instead? But it obviously shouldn't break it for users on the stable 0.21.2.
I understand why it has no effect. it just sets the diffuse color attrib, but this attrib has no meaning anymore. This is not good. It should be backward compatible. Regarding sheetmetal, I will try a new approach and let you know.
Hi @maxwxyz , The feature that was broken is the material preservation system. This means that if you change the color of a sheetmetal part, each time you add a new bend or other sheetmetal feature, the color will be preserved and not revert to gray. I have changed the preservation system to be more robust and it now works both on new and old builds. Please try and let me know. However what I don't like is that in the new builds there is no way to change the color of a part without setting a new material. Even setting "Random Color" which I use a lot has no effect! This is probably why fasteners default color no longer works.
shai
The SM features work now! But I cannot set a Material or ShapeColor to the body
But this seems to be the issue with https://github.com/FreeCAD/FreeCAD/issues/13344 I can apply a Material to a specific SM feature, e.g. a Bend And for RandomColor there seems to be a PR which fixes this: https://github.com/FreeCAD/FreeCAD/pull/13332
With the merge of @davesrocketshop Material overhaul, the Sheet Metal features seem not working as they are missing a shape color attribute: