(
ctx: &mut ScriptContext<'_, API>,
name: &str,
)
| 3742 | } else { |
| 3743 | format!("text preview\n{}", lines.join("\n")) |
| 3744 | } |
| 3745 | } |
| 3746 | |
| 3747 | pub fn animation_drawer_text(state: &EditorState) -> (String, String, String, bool, bool) { |
| 3748 | if !state.active_glb_path.is_empty() { |
| 3749 | return ( |
| 3750 | format!( |
| 3751 | "GLB Viewer {}", |
| 3752 | editor_files::rel_label(&state.active_glb_path) |
| 3753 | ), |
| 3754 | "container refs stay usable in scene fields".to_string(), |
| 3755 | state.active_glb_summary.clone(), |