mirror of
https://github.com/FyroxEngine/Fyrox.git
synced 2026-10-12 02:02:20 +00:00
BaseSceneGraph::remove_nodes
This commit is contained in:
@@ -706,6 +706,16 @@ pub trait BaseSceneGraph: AbstractSceneGraph {
|
||||
self.set_root(scheme.root);
|
||||
}
|
||||
}
|
||||
|
||||
/// Removes all the nodes from the given slice.
|
||||
#[inline]
|
||||
fn remove_nodes(&mut self, nodes: &[Handle<Self::Node>]) {
|
||||
for &node in nodes {
|
||||
if self.is_valid_handle(node) {
|
||||
self.remove_node(node)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
pub trait SceneGraph: BaseSceneGraph {
|
||||
|
||||
Reference in New Issue
Block a user