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

Function rebuild_preview

perro_editor/res/scripts/scene/editor_viewport.rs:735–766  ·  view source on GitHub ↗
(ctx: &mut ScriptContext<'_, API>)

Source from the content-addressed store, hash-verified

733 refresh_all(ctx);
734 }
735 Some(path) => {
736 reload_scene_path(ctx, &path);
737 }
738 None => {
739 if res_changed {
740 refresh_all(ctx);
741 } else {
742 refresh_status(ctx);
743 }
744 }
745 }
746}
747
748#[derive(Debug, PartialEq, Eq)]
749enum ProjectSceneChange {
750 Conflict(Vec<String>),
751 ReloadActive(String),
752 ReloadPreview,
753 Notice,
754}
755
756fn project_scene_change(
757 changed: &[String],
758 active: Option<&str>,
759 active_dirty: bool,
760 preview: &[String],
761 dirty: &[String],
762) -> ProjectSceneChange {
763 let conflicts = changed
764 .iter()
765 .filter(|path| {
766 dirty.iter().any(|item| item == *path)
767 || (active_dirty && active == Some(path.as_str()))
768 })
769 .cloned()

Callers 15

place_selected_2dFunction · 0.85
place_selected_3dFunction · 0.85
poll_project_diffsFunction · 0.85
reload_scene_pathFunction · 0.85
move_doc_ui_nodeFunction · 0.85
resize_doc_ui_nodeFunction · 0.85
rotate_doc_ui_nodeFunction · 0.85
edit_selected_transformFunction · 0.85
reset_selected_transformFunction · 0.85

Calls 5

clear_previewFunction · 0.85
collect_scene_depsFunction · 0.85
load_preview_sceneFunction · 0.85
cloneMethod · 0.80
is_emptyMethod · 0.45