Packer: store the output path of the blend file in the target directory
This allows the Flamenco Add-on to get the final path of the blend file.
This commit is contained in:
@@ -239,3 +239,13 @@ class PackTest(AbstractPackTest):
|
||||
[self.blendfiles / 'textures/HDRI/Myanmar/Golden Palace 2, Old Bagan-1k.exr'],
|
||||
list(packer.missing_files)
|
||||
)
|
||||
|
||||
def test_output_path(self):
|
||||
infile = self.blendfiles / 'basic_file.blend'
|
||||
packer = pack.Packer(infile, self.blendfiles.parent, self.tpath)
|
||||
packer.strategise()
|
||||
|
||||
self.assertEqual(
|
||||
self.tpath / self.blendfiles.name / infile.name,
|
||||
packer.output_path
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user