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

MSceneMessage is missing kAfterNew, kBeforeNew, kSceneUpdate #23

Open
Boon-in-Oz opened this issue Jul 23, 2024 · 1 comment
Open

MSceneMessage is missing kAfterNew, kBeforeNew, kSceneUpdate #23

Boon-in-Oz opened this issue Jul 23, 2024 · 1 comment

Comments

@Boon-in-Oz
Copy link

Hi, thanks for working on this and releasing it to the community.

I noticed that MSceneMessage has a list of constants that is identical to the documentation except that it is missing:
kAfterNew
kBeforeNew
kSceneUpdate

I'm not sure which Maya version your stubs were built for, but I checked the documentation for Maya 2022, 2024 and 2025 and they all have those values.

@Muream
Copy link
Owner

Muream commented Jul 23, 2024

This seems to be because of how I deal with inheritance

MSceneMessage defines:

  • kSceneUpdate = 0
  • kBeforeNew = 1
  • kAfterNew = 2

But the MMessage (the parent class) already implements enum members with the same values:

  • kDefaultAction = 0
  • kDoAction = 2
  • kDoNotDoAction = 1

This makes these specific members ignored by these lines here:

is_inherited = id(member) in parent_members
if is_inherited:
continue

I can't quite remember why I do that check based on the id of the members and not their names though

I'd happily accept a PR if you're willing to work on that

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

No branches or pull requests

2 participants