Fix incorrect index-key in RNA path built from Outliner

Bug introduced in 7cbcfb7f49.
This commit is contained in:
2022-01-26 18:29:54 +01:00
parent b57db4b79e
commit fdd84d36ce

View File

@@ -1792,6 +1792,7 @@ static void tree_element_to_path(TreeElement *te,
if (temsub == temnext) {
break;
}
index++;
}
newpath = RNA_path_append(*path, nullptr, prop, index, nullptr);
}