Duik
Duik copied to clipboard
Incorrect Control Point Generation for 3D Layers with Rotation
Description: This is a logic-related bug, so there’s no relevant log file to attach.
Issue: When a layer is 3D and has rotation applied, the control points generated by "Add bones" are incorrect. The core problem is that the generated control point remains in 2D, even though the target layer is 3D.
Steps to Reproduce:
- If the layer only has a position in Z-space (no rotation), a 2D control point is generated and becomes misaligned when toggled to 3D—its Z position does not match.
- If the layer also has rotation, the generated control point becomes entirely incorrect in both position and orientation.
Discussion: I discussed this issue with a fellow developer working on another puppet tool. We found a possible workaround:
Suggested Fix (Workaround Steps):
- The control point should be set to 3D and parented to the target layer initially.
- Apply a one-time correction to the control point’s position and rotation while it is parented.
- Unparent the control point and proceed with the rest of the logic as originally intended.