mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
fix hound 🐶
This commit is contained in:
parent
3a42aa5c94
commit
f5087f4e47
4 changed files with 3 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
"""Tools to work with FBX."""
|
||||
import os
|
||||
import logging
|
||||
|
||||
from pyblish.api import Instance
|
||||
|
|
|
|||
|
|
@ -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")) + 3:]
|
||||
)
|
||||
|
||||
geometry_set = [i for i in instance if i == "geometry_SET"]
|
||||
|
|
|
|||
|
|
@ -84,4 +84,4 @@ class ExtractUnrealStaticMesh(openpype.api.Extractor):
|
|||
}
|
||||
instance.data["representations"].append(representation)
|
||||
|
||||
self.log.info("Extract FBX successful to: {0}".format(path))
|
||||
self.log.info("Extract FBX successful to: {0}".format(path))
|
||||
|
|
|
|||
|
|
@ -117,7 +117,7 @@ class ValidateUnrealStaticMeshName(pyblish.api.InstancePlugin):
|
|||
else:
|
||||
expected_collision = "{}_{}".format(
|
||||
cl_m.group("prefix"),
|
||||
combined_geometry_name[len(static_mesh_prefix)+1:]
|
||||
combined_geometry_name[len(static_mesh_prefix) + 1:]
|
||||
)
|
||||
|
||||
if not obj.startswith(expected_collision):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue