fix loader filepath access

This commit is contained in:
Jakub Trllo 2023-06-01 12:52:58 +02:00
parent 553bba8713
commit 9e5720953f
2 changed files with 5 additions and 2 deletions

View file

@ -27,6 +27,7 @@ class FusionLoadWorkfile(load.LoaderPlugin):
# Get needed elements
bmd = get_bmd_library()
comp = get_current_comp()
path = self.filepath_from_context(context)
# Paste the content of the file into the current comp
comp.Paste(bmd.readfile(self.fname))
comp.Paste(bmd.readfile(path))