This already happens in the node_tree_set_type
call from ntree_blend_read_after_liblink
, which runs before do_versions_after_linking
.
Overall, it seems like this approach could work, but it's not obvious to me that this is the right way to go yet. I don't have a fully formed opinion on it yet, sry.
Ok, that's fine, this…
It is too bad that instead of just use bNodeTreeType to different kinds of node trees in general there is another one kind of tree typing just to different shader node trees...
Geometry nodes…
For now this is an npr-prototype
-only thing, but I would appreciate a quick look from @JacquesLucke or @HooglyBoogly, to ensure I'm not doing anything terrible.
I can repro. No need to reload scripts. Removing all objects, switching to Material Preview, and enabling the HDRI Preview is enough.