Fix #106427: Vector Math node does not appear in node search #106579

Merged
Bastien Montagne merged 1 commits from pioverfour/blender:dp_fix_106427_vector_math into main 2023-04-12 12:02:03 +02:00

1 Commits

Author SHA1 Message Date
Damien Picard ce97a4ad48 Fix #106427: Vector Math node does not appear in node search
When trying to search for the Vector Math node with a translated
interface, the node did not come up because it did not use the proper
translation context.

The Vector Math node's RNA had a translation context added in
db87e2a638, in order for the Floor operation to be disambiguated. I
made a mistake and added the context to the entire node struct instead
of just the Operation prop. This had the result that the Vector Math
was searched with an empty context in the search menu, but could not
be found.

Replacing the translation context from the struct to the property
fixes the issue, and actually allows disambiguating operations such as
Floor, which wasn't achieved previously.
2023-04-05 02:03:34 +02:00