(state: &EditorState)
| 1294 | RowIndicator::Collapsed |
| 1295 | } else { |
| 1296 | RowIndicator::Expanded |
| 1297 | } |
| 1298 | } |
| 1299 | |
| 1300 | fn take_inspector_layout_pass<API: ScriptAPI + ?Sized>(ctx: &mut ScriptContext<'_, API>) -> bool { |
| 1301 | with_state_mut!(ctx.run, EditorState, ctx.id, |state| { |
| 1302 | if state.inspector_layout_applied { |
| 1303 | false |
| 1304 | } else { |
| 1305 | state.inspector_layout_applied = true; |
| 1306 | true |
| 1307 | } |
| 1308 | }) |
| 1309 | .unwrap_or(false) |
| 1310 | } |
| 1311 | |
| 1312 | fn ensure_inspector_node_chain<API: ScriptAPI + ?Sized>( |
| 1313 | ctx: &mut ScriptContext<'_, API>, |
| 1314 | parts: &[String], |
| 1315 | ) { |
| 1316 | let Some(mount_id) = find_named(ctx, "inspector_node_chain_mount") else { |
| 1317 | return; |
| 1318 | }; |
| 1319 | set_ui_display(ctx, "inspector_node_chain_mount", !parts.is_empty()); |
| 1320 | if parts.is_empty() { |
nothing calls this directly
no test coverage detected