MCPcopy Create free account
hub / github.com/PerroEngine/Perro / has_3d

Function has_3d

perro_editor/res/scripts/scene/editor_scene.rs:4–9  ·  view source on GitHub ↗
(doc: &SceneDoc)

Source from the content-addressed store, hash-verified

2use perro_api::scene::SceneDoc;
3
4pub fn has_3d(doc: &SceneDoc) -> bool {
5 doc.scene
6 .nodes
7 .iter()
8 .any(|node| node.data.node_type.is_a(perro_scene::NodeType::Node3D))
9}
10
11pub fn has_2d(doc: &SceneDoc) -> bool {
12 doc.scene

Callers 2

load_preview_sceneFunction · 0.85
add_preview_envFunction · 0.85

Calls 2

anyMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected