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

Function set_row_state

perro_editor/res/scripts/ui/editor_ui.rs:4089–4097  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    selected: bool,
    indicator: RowIndicator,
)

Source from the content-addressed store, hash-verified

4087 let mut doc = doc.clone();
4088 for node in doc.scene.nodes.to_mut().iter_mut() {
4089 node.script = None;
4090 node.clear_script = true;
4091 if let Some(root_of) = node.root_of.as_mut()
4092 && root_of.starts_with("res://")
4093 {
4094 *root_of = Cow::Owned(res_to_abs(project_root, root_of));
4095 }
4096 rewrite_project_res_data(&mut node.data, project_root);
4097 for (_, value) in node.script_vars.to_mut().iter_mut() {
4098 rewrite_project_res_value(value, project_root);
4099 }
4100 }

Callers 1

refresh_inspector_viewFunction · 0.85

Calls 2

set_button_fillFunction · 0.85
set_indicator_shapeFunction · 0.85

Tested by

no test coverage detected