filter = None
if self.skip_existing:
filter = lambda r: not os.path.exists(os.path.join(path, r.name))
- scene_res.write_collection(os.path.join(path, base+"_resources.mdc"), exclude=self=True, filter)
+ scene_res.write_collection(os.path.join(path, base+"_resources.mdc"), exclude_self=True, filter=filter)
else:
res_dir = os.path.join(path, base+"_resources")
if not os.path.exists(res_dir):