Open LiborBatek opened 1 month ago
Updating works for me in Blender 4.2 LTS.
The filter to outdated toggle does not work, but is a known ayon-core issue here.
So this may be something specific on your end with the product you're loading?
It's odd that it gets a None
type as modifier because here just the line before it creates a new one. Are you able to pinpoint when exactly this occurs? If not, then this may be best to delve deeper with your specific scenes or files.
So - yes, this is broken for any updates between versions that have MeshSequenceCache
applied (any pointcaches that have vertex deformations, e.g. skinned characters).
But the issue is much bigger than that:
MeshSequenceCache
modifiers on meshes:
The error is that it's trying to add the modifier also to e.g. Empties - but there the modifier can't be created and returns None. We can skip that to "fix" the error, but that doesn't solve the updating of pointcaches.
We're not applying/removing TransformCache
connections on updates:
We're not updating transforms or shapes for NON-animated meshes on updates. Those do not have the modifiers nor the constraints so are not updated through a 'live link' - meaning that those are NOT updated if the transforms or meshes have changed since last version update. We should.
(Nice-to-have): Likely we'll want to make sure when adding/updating modifiers/constraints that we preserve them in the modifier/constraint stack so any local changes aside of that are maintained.
We're not adding/removing empties or meshes that are removed or added between pointcache versions - hence, we're not updating those correctly either.
So basically we're not correctly updating all the data that may change between pointcache versions.
Is there a way to fix the bare minimum atm (e.g. to not care about those non deformed meshes and empties but the deformed only)
I can imagine it might work in 85% scenarios and if not user could swipe the version present and bring fresh new instead.
@moonyuet or maybe you could be involved in this as well :)
@moonyuet or maybe you could be involved in this as well :)
I tested in my side just now, I can't really replicate the issue you mentioned but rather updating the object path issue. Guess the short-term fix can be checking on the bpy.data.cache_file
issue first and get the correct file. But we definitely need some long-term solution.
Is there an existing issue for this?
Current Behavior:
When having loaded
pointcache
product in workfile and trying to performManage > Set Version
it throws an error and not perform the action.Expected Behavior:
Manage action must work on any product.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
AYON > Manage> Set Version
Are there any labels you wish to add?
Relevant log output:
No response
Additional context:
No response