mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
fix frame handling and collision name determination
This commit is contained in:
parent
298da27fee
commit
28e11a5b2d
2 changed files with 5 additions and 3 deletions
|
|
@ -154,8 +154,10 @@ class FBXExtractor:
|
|||
self.log.info("Export options: {0}".format(options))
|
||||
|
||||
# Collect the start and end including handles
|
||||
start = instance.data["frameStartHandle"]
|
||||
end = instance.data["frameEndHandle"]
|
||||
start = instance.data.get("frameStartHandle") or \
|
||||
instance.context.data.get("frameStartHandle")
|
||||
end = instance.data.get("frameEndHandle") or \
|
||||
instance.context.data.get("frameEndHandle")
|
||||
|
||||
options['bakeComplexStart'] = start
|
||||
options['bakeComplexEnd'] = end
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ class CollectUnrealStaticMesh(pyblish.api.InstancePlugin):
|
|||
# take the name from instance (without the `staticMesh_` prefix)
|
||||
instance.data["staticMeshCombinedName"] = "{}_{}".format(
|
||||
sm_prefix,
|
||||
instance.name[len(instance.data.get("family")) + 3:]
|
||||
instance.name[len(instance.data.get("family")) + 1:]
|
||||
)
|
||||
|
||||
geometry_set = [i for i in instance if i == "geometry_SET"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue