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

Function node_ref_group_label

perro_editor/res/scripts/ui/editor_ui.rs:1711–1727  ·  view source on GitHub ↗
(refs: &[String])

Source from the content-addressed store, hash-verified

1709 } else {
1710 scene_value_components(&node.data, "rotation")
1711 };
1712
1713 view.name = "Name".to_string();
1714 view.name_edit = doc.scene.key_name_or_id(node.key).to_string();
1715 view.kind = node.data.node_type.name().to_string();
1716 view.parent = String::new();
1717 view.node_chain = node_chain_parts(node.data.node_type, node.script.is_some());
1718 view.node_actions = true;
1719 view.transform_fields = transform_fields;
1720 view.pos = scene_value_components(&node.data, "position");
1721 view.rotation_label = if rotation_mode == "euler" {
1722 "Rotation Degrees".to_string()
1723 } else {
1724 "Rotation".to_string()
1725 };
1726 view.rotation_components = if rotation_mode == "euler" {
1727 ["x", "y", "z", ""]
1728 } else if rotation.len() == 1 {
1729 ["r", "", "", ""]
1730 } else {

Callers 1

node_ref_assign_labelFunction · 0.85

Calls 3

iterMethod · 0.45
as_strMethod · 0.45
allMethod · 0.45

Tested by

no test coverage detected