Tooltips of Add node operator in Blender 3.3
Created by: Durman
Problem statement
Blender 3.3 silently added description
class method for AddNodeOperator
- https://developer.blender.org/D14963 https://developer.blender.org/T101657
Now it overrides our approach of adding tooltips. It's a coincidence that we did not loos tooltips completely because their approach is similar, it also uses node doc strings.
Our current approach is a class factory of AddNodeOperator
subclasses for each node item in the menu.
https://github.com/nortikin/sverchok/blob/b5a8ebcf59d7fb667754523d1e28c9671884f56a/menu.py#L256-L264
With the new feature we have opportunity to simplify our solution and replace the factory wit single Add operator. The question is about backward compatibility. I see 3 ways to go:
- Add
description
method to our current approach. It's simplest solution and backward compatible but it want make our approach simpler. - Rewrite our current approach. It's more complicated, backward incompatible but it will simplify the menu code. And probably it's not a big deal to drop the feature in 3.2 3.1. 3.0 and 2.93 Blender versions.
- Add separate solution for Blender 3.3 and higer. It's most complicated but backward compatible.