Forgets every layer but DEFAULT_LAYER_NAME, putting the registry back
to its initial state.
Two callers, and the same reason resetDevWarnings exists: a test that
asserts "this name got bit 1" is only assertable from a known starting point,
and a §79 reader replaying a document's saved names needs the assignment to
start where the writer's did (see the module header).
Masks already held by nodes, cameras, and viewports are not rewritten —
they are plain numbers and this function cannot reach them. Reset before
building a scene, never in the middle of one.
Forgets every layer but DEFAULT_LAYER_NAME, putting the registry back to its initial state.
Two callers, and the same reason
resetDevWarningsexists: a test that asserts "this name got bit 1" is only assertable from a known starting point, and a §79 reader replaying a document's saved names needs the assignment to start where the writer's did (see the module header).Masks already held by nodes, cameras, and viewports are not rewritten — they are plain numbers and this function cannot reach them. Reset before building a scene, never in the middle of one.