reload method

void reload(
  1. String path
)

Loads the model at path again (its file or its cooked copy changed): until the new one arrives get is null for it. Tells listeners now and as it arrives, and reloadListeners once it has. Nothing happens for a path never asked for.

Implementation

void reload(String path) {
  if (_entries.remove(path) == null) return;
  _reloading.add(path);
  _notify(path);
  // Read now, not when next drawn: what was made from the old file waits
  // for it.
  _entry(path);
}