-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
SingleLayerInfluenceMask: fix serialization issues #2372
SingleLayerInfluenceMask: fix serialization issues #2372
Conversation
Is there an inherent reason that the serialization issue cannot be fixed? I am not an expert in serialization, so I apologize if I'm overlooking something obvious here But wouldn't it resolve the issue if AnimComposer and SkinningControl get removed as class variables, and instead get passed in as paramters in the methods that use them? That would of course still break a few lines of code for anyone currently using this, but that may be less intrusive than eventually deleting it altogether. |
The issue would indeed be resolved if AnimComposer and SkinningControl were removed. The problem is that AnimComposer is being used to check if any higher layers are using a joint. Without it, SingleLayerInfluenceMask is useless. SkinningControl I think could be removed. A lot of neat utility methods would have to go with it, but it can probably be removed anyway. |
What if you change those methods to take the AnimComposer or SkinningControl as a method paramater? This would allow that method to use AnimComposer without needing AnimComposer as a class variable:
You would then obviously have to change some of your own code that calls these methods to pass in the new AnimComposer param. But this way these non-serializable variables would no longer need stored in this class that needs serialized |
Hi @codex128 , I'm curious if you have considered my suggestion? I'd be willing to keep this class in the engine if you can make the changes I suggested to resolve the serialization issues. Or is there something more to this issue I am possibly missing that makes my suggestion invalid? Removing it would be the last resort, and there's a good case for why this may not have been a good addition in the first place. But removing an existing class altogether isn't typically a great decision once users may be relying on it as you mentioned, so I think the optimal solution would be to fix the serialization issues so it doesn't cause any future issues. |
Ah, yes, thanks for reminding me. It slipped my mind and I've been rather busy lately. I've submitted #2376 that incorporates your suggestion. |
Hi guys,
Please let me know your thoughts. |
It looks fine to me.
I would only suggest considering keeping |
The @yaRnMcDonuts if you also agree, I propose to move forward with this solution. |
That sounds good to me! |
see #2317