(refs: &[String])
| 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 { |
no test coverage detected