fix hound 🐶

This commit is contained in:
Ondrej Samohel 2022-02-18 19:04:24 +01:00
parent 3a42aa5c94
commit f5087f4e47
No known key found for this signature in database
GPG key ID: 02376E18990A97C6
4 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
"""Tools to work with FBX."""
import os
import logging
from pyblish.api import Instance

View file

@ -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"]

View file

@ -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))

View file

@ -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):