Skip to content

Inconsistent API: FlowScene::selectedNodes() and FlowScene::nodes() #229

@DexterMagnific

Description

@DexterMagnific

Hi,

The returned types of these two methods is not the same, as a consequence it is hard to work with the API.

My use case is that I want to do some work on the selected nodes. If no nodes are selected, then I do it on all the nodes. With this API, I cannot use the code below:

selection = scene.selectedNodes();
if ( selection.size() == 0 ) {
    selection = scene.nodes()
}

Please make a consistent API, whether I all the nodes or the selected ones.

Thanks

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions