Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some child classes inherit from both their parent and grandparent, causing "Cannot create consistent method ordering" error #286

Closed
Road-hog123 opened this issue Jul 9, 2024 · 3 comments
Assignees
Labels

Comments

@Road-hog123
Copy link
Contributor

bl_operators/bone_selection_sets/__init__.pyi:

class POSE_OT_selection_set_copy(_PoseModeOnlyMixin, _NeedSelSetMixin)

The class should only inherit from the latter, as in the source scripts/startup/bl_operators/bone_selection_sets.py:

class _PoseModeOnlyMixin
class _NeedSelSetMixin(_PoseModeOnlyMixin)
class POSE_OT_selection_set_copy(_NeedSelSetMixin, Operator)
@nutti nutti self-assigned this Jul 20, 2024
@nutti nutti added the bug label Jul 21, 2024
@nutti
Copy link
Owner

nutti commented Jul 21, 2024

This issue is now fixed.

@nutti nutti closed this as completed Jul 21, 2024
@Road-hog123
Copy link
Contributor Author

The error is resolved, but I'm now seeing the child inheriting only from the grandparent instead of the parent:

class POSE_OT_selection_set_copy(_PoseModeOnlyMixin, bpy.types.Operator)

@nutti
Copy link
Owner

nutti commented Jul 22, 2024

This is a trivial bug. Fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants