| … | … | @@ -553,6 +553,7 @@ func refresh() -> void: |
| 553 | 553 | _obj_row.clear() |
| 554 | 554 | _group_row.clear() |
| 555 | 555 | var rows: Array = model.rows() |
| 556 | _rows = rows |
| 556 | 557 | var groups: Array = [] |
| 557 | 558 | for r: Dictionary in rows: |
| 558 | 559 | if bool(r.get("system", false)) and not show_system: |
| … | … | @@ -1243,12 +1244,18 @@ func _select_in_viewport_rows(r: Dictionary) -> void: |
| 1243 | 1244 | map.select_brushes(ids) |
| 1244 | 1245 | |
| 1245 | 1246 | |
| 1247 | ## The rows the tree on screen was built from (refresh()). The status line counts these |
| 1248 | ## rather than calling model.rows() again: that second build was ~40 ms of a 20-cable |
| 1249 | ## bundle's ~220 ms refresh, paid twice per fold (#127), and every hide change refreshes. |
| 1250 | var _rows: Array = [] |
| 1251 | |
| 1252 | |
| 1246 | 1253 | func _update_status() -> void: |
| 1247 | 1254 | if _status == null or model == null: |
| 1248 | 1255 | return |
| 1249 | 1256 | var r: Dictionary = _selected_row() |
| 1250 | 1257 | var hidden := 0 |
| 1251 | | for row: Dictionary in model.rows(): |
| 1258 | for row: Dictionary in _rows: |
| 1252 | 1259 | if bool(row["self_hidden"]): |
| 1253 | 1260 | hidden += 1 |
| 1254 | 1261 | var sel := "nothing selected" |