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

Method is_empty

perro_editor/res/scripts/scene/editor_nodes.rs:1308–1310  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1306
1307pub fn parent_node_rank(kind: Option<&str>, node_type: perro_scene::NodeType) -> u8 {
1308 match kind {
1309 Some("2D") if node_type.is_a(perro_scene::NodeType::Node2D) => 0,
1310 Some("3D") if node_type.is_a(perro_scene::NodeType::Node3D) => 0,
1311 Some("UI") if node_type.is_a(perro_scene::NodeType::UiNode) => 0,
1312 Some("Node") => 0,
1313 Some(_) => 1,

Callers 15

poll_project_diffsFunction · 0.45
rebuild_previewFunction · 0.45
load_preview_sceneFunction · 0.45
editor_cursor_iconFunction · 0.45
pick_preview_uiFunction · 0.45
unique_panim_object_nameFunction · 0.45
sanitize_panim_identFunction · 0.45
read_component_valuesFunction · 0.45
rename_selected_nodeFunction · 0.45
parse_script_vars_textFunction · 0.45
parse_script_var_valueFunction · 0.45
parse_number_listFunction · 0.45

Calls

no outgoing calls

Tested by 15

scene_row_subsectionFunction · 0.36
parse_state_struct_nameFunction · 0.36
parse_struct_headerFunction · 0.36
parse_script_schemaFunction · 0.36
parse_script_importsFunction · 0.36
parse_enum_headerFunction · 0.36