Open antirotor opened 2 years ago
Actually there is another validator that should flag, that you cannot publish InitialShadingGroup as part of the look. If artist tries to run this repair on invalid look in general then it fail. The question is of course how to make it more intuitive
I'd say maybe joining multiple validator to a single on that can be a bit more complex, might be better.
I'd say maybe joining multiple validator to a single on that can be a bit more complex, might be better.
I personally would avoid that - I feel it's much more trivial to keep each doing tiny things instead of having monster validators. Easier to maintain, to test, to isolate and set optional/inactive if you don't like the particular validation, etc.
In this case I'd actually just have the repair action log the error together with the node name it was trying to rename - just so that at least it's clear which node it was unable to rename due to being read only.
Bug
When publishing look with incorrect naming validator Look Shading Engine Naming will trigger ok, but its repair action fails on:
Problem is that it is trying to rename
initialShadingGroup
that is read only. So if artist forget to apply shader so there is part of the model with default shader, this will fail and it is not very clear why.[cuID:OP-2032]