Fix a bug where Transform nodes would cause a reversal of the 'Instance Index' node's 'Loop Level' counting direction

This commit is contained in:
Keavon Chambers
2026-01-13 23:15:42 -08:00
parent 654a05bb41
commit 20a595db39
2 changed files with 13 additions and 3 deletions

View File

@@ -334,7 +334,7 @@ impl ExtractPointer for OwnedContextImpl {
}
impl ExtractIndex for OwnedContextImpl {
fn try_index(&self) -> Option<impl Iterator<Item = usize>> {
self.index.clone().map(|x| x.into_iter().rev())
self.index.clone().map(|x| x.into_iter())
}
}
impl ExtractVarArgs for OwnedContextImpl {
@@ -523,7 +523,7 @@ impl OwnedContextImpl {
}
pub fn with_index(mut self, index: usize) -> Self {
if let Some(current_index) = &mut self.index {
current_index.push(index);
current_index.insert(0, index);
} else {
self.index = Some(vec![index]);
}