mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
🐛 small fixes
This commit is contained in:
parent
83dfd765e2
commit
6d9c73dae7
2 changed files with 4 additions and 7 deletions
|
|
@ -86,7 +86,7 @@ class KeepOriginalLocation(TraitBase):
|
|||
name: ClassVar[str] = "KeepOriginalLocation"
|
||||
description: ClassVar[str] = "Keep Original Location Trait Model"
|
||||
id: ClassVar[str] = "ayon.meta.KeepOriginalLocation.v1"
|
||||
persistent = Field(False, title="Persistent")
|
||||
persistent: bool = Field(False, title="Persistent")
|
||||
|
||||
class KeepOriginalName(TraitBase):
|
||||
"""Keep files in its original name.
|
||||
|
|
@ -98,4 +98,4 @@ class KeepOriginalName(TraitBase):
|
|||
name: ClassVar[str] = "KeepOriginalName"
|
||||
description: ClassVar[str] = "Keep Original Name Trait Model"
|
||||
id: ClassVar[str] = "ayon.meta.KeepOriginalName.v1"
|
||||
persistent = Field(False, title="Persistent")
|
||||
persistent: bool = Field(False, title="Persistent")
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ class Sequence(TraitBase):
|
|||
"Frame padding does not match the expected frame padding. "
|
||||
f"Expected: {expected_padding}, Found: {self.frame_padding}"
|
||||
)
|
||||
raise TraitValidationError(msg)
|
||||
raise TraitValidationError(self.name, msg)
|
||||
|
||||
@staticmethod
|
||||
def list_spec_to_frames(list_spec: str) -> list[int]:
|
||||
|
|
@ -350,10 +350,7 @@ class Sequence(TraitBase):
|
|||
def get_frame_padding(file_locations: FileLocations) -> int:
|
||||
"""Get frame padding."""
|
||||
src_collection = Sequence._get_collection(file_locations)
|
||||
destination_indexes = list(src_collection.indexes)
|
||||
# Use last frame for minimum padding
|
||||
# - that should cover both 'udim' and 'frame' minimum padding
|
||||
return len(str(destination_indexes[-1]))
|
||||
return src_collection.padding
|
||||
|
||||
@staticmethod
|
||||
def get_frame_list(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue