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

Method apply_asset_actions

perro_editor/res/scripts/ui/editor_ui.rs:1319–1326  ·  view source on GitHub ↗
(&mut self, state: &EditorState)

Source from the content-addressed store, hash-verified

1317 return;
1318 };
1319 set_ui_display(ctx, "inspector_node_chain_mount", !parts.is_empty());
1320 if parts.is_empty() {
1321 return;
1322 }
1323 if find_named(ctx, "inspector_node_chain").is_none()
1324 && let Ok(root_id) = ctx
1325 .run
1326 .Scene()
1327 .load(editor_app::INSPECTOR_NODE_CHAIN_SCENE.to_string())
1328 {
1329 let _ = ctx.run.Nodes().reparent(mount_id, root_id);

Callers 2

for_nodeMethod · 0.80
for_assetMethod · 0.80

Calls 4

kind_labelFunction · 0.85
is_gltf_pathFunction · 0.70
as_strMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected