Add (optional) Null check to cache region

As soon as you need null checks, the cache region becomes quite tedious to use:

This pattern always happens when you patch some nodes for a new library, the pins have null inputs when the node is placed in the patch.

Can be on/off for all inputs for simplicity at first.

1 Like

Probably IsAssigned region would be nice

2 Likes

Yes, that would additionally be a good addition. But I would prefer to have fewer region levels.

Hm, that’s an interesting case.

My first impulse was to ask why the “GSync Device” and “Physical GPU” (on screenshot above) weren’t put directly into the BSP. But the answer is kind of obvious — caching should only be invoked if both values are assigned. However, as far as I know, the cache region doesn’t check this for all BSPs. In fact, it manages null values just as it does with any other change.

It might be a good idea to add an option to “invoke only on non-null values”.

The IsAssigned region has been requested for a very long time.

1 Like