mirror of
https://projects.blender.org/blender/blender.git
synced 2025-01-22 15:32:15 -05:00
Fix (unreported) assert in recursive 'foreach id' iterating code.
owner ID pointer needs to be reset after initial usage, for the recursively processed 'children' IDs.
This commit is contained in:
parent
696848204c
commit
a94798d31c
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ static bool library_foreach_ID_link(Main *bmain,
|
|||
} \
|
||||
((void)0)
|
||||
|
||||
for (; id != nullptr; id = (flag & IDWALK_RECURSE) ? BLI_LINKSTACK_POP(data.ids_todo) : nullptr)
|
||||
for (; id != nullptr; id = (flag & IDWALK_RECURSE) ? BLI_LINKSTACK_POP(data.ids_todo) : nullptr, owner_id = nullptr)
|
||||
{
|
||||
data.self_id = id;
|
||||
/* owner ID is same as self ID, except for embedded ID case. */
|
||||
|
|
Loading…
Reference in a new issue