mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 23:08:05 +08:00
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:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user