Fix T73593: Drivers on hide_viewport and hide_render are unreliable
My previous fix (rB4c30dc343165) worked, except for an off-by-one error.
This commit is contained in:
parent
0b116a84c9
commit
7192a1bca3
|
@ -2810,7 +2810,7 @@ void DepsgraphRelationBuilder::build_driver_relations(IDNode *id_node)
|
|||
Node *op_from = prefix_group.second[from_index];
|
||||
|
||||
// Start by trying the next node in the group.
|
||||
for (int to_offset = 1; to_offset < num_drivers - 1; ++to_offset) {
|
||||
for (int to_offset = 1; to_offset < num_drivers; ++to_offset) {
|
||||
int to_index = (from_index + to_offset) % num_drivers;
|
||||
Node *op_to = prefix_group.second[to_index];
|
||||
|
||||
|
|
Loading…
Reference in New Issue