mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
Assert file exists on load in ReferenceLoader to avoid empty reference
This commit is contained in:
parent
c077d946f6
commit
11a8b952d7
1 changed files with 3 additions and 0 deletions
|
|
@ -39,9 +39,12 @@ class ReferenceLoader(api.Loader):
|
|||
namespace=None,
|
||||
data=None):
|
||||
|
||||
import os
|
||||
from avalon.maya import lib
|
||||
from avalon.maya.pipeline import containerise
|
||||
|
||||
assert os.path.exists(self.fname), "%s does not exist." % self.fname
|
||||
|
||||
asset = context['asset']
|
||||
|
||||
namespace = namespace or lib.unique_namespace(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue