I'm working on my render graph editor. There are two special nodes called Input and Output. They should exist for all my node graphs, can not be created by the user, nor can be deleted.
I want to hide the close button for my Input/Output node. Currently I found no existing way to do this.
There can be a method fn can_delete(&self) -> bool for NodeDataTrait, so the nodes can decide whether it is deletable.
I implemented it on my fork. I can make a pr if you like.
I'm working on my render graph editor. There are two special nodes called Input and Output. They should exist for all my node graphs, can not be created by the user, nor can be deleted.
I want to hide the close button for my Input/Output node. Currently I found no existing way to do this.
There can be a method
fn can_delete(&self) -> bool
forNodeDataTrait
, so the nodes can decide whether it is deletable.I implemented it on my fork. I can make a pr if you like.