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

Function node_uses_asset_path

perro_editor/res/scripts/scene/editor_nodes.rs:570–577  ·  view source on GitHub ↗
(node: &SceneNodeEntry, asset_path: &str)

Source from the content-addressed store, hash-verified

568 .iter()
569 .position(|node| node.key.as_u32() == selected)
570 .map(|idx| (idx + 1) % users.len())
571 })
572 .unwrap_or(0);
573 let node = users[next_idx];
574 let key = node.key.as_u32();
575 state.selected_key = Some(key);
576 state.sidebar_mode = "scene".to_string();
577 state.activity_mode = "scene".to_string();
578 state.scene_filter.clear();
579 if let Some(mode) = viewport_mode_for_node_type(node.data.node_type) {
580 state.viewport_mode = mode.to_string();

Callers 1

asset_user_textFunction · 0.85

Calls 3

base_res_asset_pathFunction · 0.85
selected_node_asset_refsFunction · 0.85
anyMethod · 0.80

Tested by

no test coverage detected