Walk from root toward the node whose path equals targetPath,
returning the chain of SceneNodes in root-to-leaf order. The scene-root
node is included iff its own type is not 'scene' — scene roots are
carriers-only and should contribute no rendering attrs.
This implementation is path-format-agnostic: it matches children by
direct prefix comparison on the already-stored path field, so it
works for both the leading-slash format produced by the real scene
loader ('/', '/group/pts') and the plain format used in unit tests
('', 'group/pts').
Walk from
roottoward the node whose path equalstargetPath, returning the chain of SceneNodes in root-to-leaf order. The scene-root node is included iff its owntypeis not'scene'— scene roots are carriers-only and should contribute no rendering attrs.This implementation is path-format-agnostic: it matches children by direct prefix comparison on the already-stored
pathfield, so it works for both the leading-slash format produced by the real scene loader ('/','/group/pts') and the plain format used in unit tests ('','group/pts').