h4lfheart / FortnitePorting

Automation of the Fortnite Porting Process
GNU General Public License v3.0
250 stars 45 forks source link

Fix import of PoseData #63

Closed RedHaze closed 5 months ago

RedHaze commented 5 months ago

In #62, the following was added when grabbing PoseData:

if (pose_data := meta.get("PoseData") and imported_mesh is not None):

This actually sets pose_data to a boolean value which later results in the error:

[FNPORTING] Failed to import PoseAsset data from ...: 'bool' object is not iterable

This PR performs the check outside of the context of the variable set.