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

Function node_ref_assign_label

perro_editor/res/scripts/ui/editor_ui.rs:1686–1697  ·  view source on GitHub ↗
(kind: &str)

Source from the content-addressed store, hash-verified

1684 collapsed_sections: Vec::new(),
1685 }
1686 }
1687}
1688
1689impl InspectorViewData {
1690 fn for_node(doc: &SceneDoc, node: &SceneNodeEntry, state: &EditorState) -> Self {
1691 let mut view = Self::default();
1692 let script = node
1693 .script
1694 .as_ref()
1695 .map(|value| value.as_ref())
1696 .unwrap_or("-");
1697 let is_3d = node.data.node_type.is_a(perro_scene::NodeType::Node3D);
1698 let transform_fields = scene_node_transform_fields(node.data.node_type);
1699 let has_position = transform_fields.contains(&"position");
1700 let has_rotation = transform_fields.contains(&"rotation");

Callers

nothing calls this directly

Calls 5

node_ref_names_from_kindFunction · 0.85
node_ref_group_labelFunction · 0.85
cloneMethod · 0.80
is_emptyMethod · 0.45
lenMethod · 0.45

Tested by

no test coverage detected