Add camera rigs: workaround for the 2D rig dependency cycle #105293

Open
Damien Picard wants to merge 3 commits from pioverfour/blender-addons:fix_cams into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

A dependency cycle occurs currently because the camera's properties
depend on both the armature and itself, through the lens property.
As far as I can tell this cycle does not cause any lag, but it's
better to fix it anyway.

This commit works around this cycle by introducing an intermediate
lens property on the rig itself, and this is used to drive the actual
camera lens.

Reported and fixed by Beorn Leonard.

This PR also includes the upstream improvement to expose 2D rig
properties in the UI.

A dependency cycle occurs currently because the camera's properties depend on both the armature and itself, through the lens property. As far as I can tell this cycle does not cause any lag, but it's better to fix it anyway. This commit works around this cycle by introducing an intermediate lens property on the rig itself, and this is used to drive the actual camera lens. Reported and fixed by Beorn Leonard. This PR also includes the upstream improvement to expose 2D rig properties in the UI.
Damien Picard added 3 commits 2024-04-24 21:41:41 +02:00
d55bd19cc6 Add camera rigs: workaround dependency cycles on the 2D rig
A dependency cycle occurs currently because the camera's properties
depend on both the armature and itself, through the lens property.
As far as I can tell this cycle does not cause any lag, but it's
better to fix it anyway.

This commit works around this cycle by introducing an intermediate
lens property on the rig itself, and this is used to drive the actual
camera lens.

Reported and fixed by Beorn Leonard.
Author
Member

@WayneDixon Hi, it looks like I can’t assign you as a reviewer, but here’s an alternative fix to the dependency cycle, based on Beorn’s solution.

@WayneDixon Hi, it looks like I can’t assign you as a reviewer, but here’s an alternative fix to the dependency cycle, based on Beorn’s solution.
Damien Picard force-pushed fix_cams from 36ce06bd3a to d811727a89 2024-04-24 21:51:03 +02:00 Compare
Merge conflict checking is in progress. Try again in few moments.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u fix_cams:pioverfour-fix_cams
git checkout pioverfour-fix_cams
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105293
No description provided.