Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if a path is a folder before trying to import vfx #6890

Merged
merged 3 commits into from
Feb 4, 2022

Conversation

julienamsellem
Copy link
Contributor

Purpose of this PR

https://fogbugz.unity3d.com/f/cases/1385206/

When naming a folder with a "vfx" extension the vfx post processor was failing on macOS.


Testing status

No change on Windows since the issue only appears on Mac.


Comments to reviewers

I added a unit test so that it can be catch on macOS build machines.

@github-actions
Copy link

Hi! This comment will help you figure out which jobs to run before merging your PR. The suggestions are dynamic based on what files you have changed.
Link to Yamato: https://unity-ci.cds.internal.unity3d.com/project/902/
Search for your PR branch using the search bar at the top, then add the following segment(s) to the end of the URL (you may need multiple tabs depending on how many packages you change)

VFX
/jobDefinition/.yamato%252Fall-vfx.yml%2523PR_VFX_trunk

Depending on the scope of your PR, you may need to run more jobs than what has been suggested. Please speak to your lead or a Graphics SDET (#devs-graphics-automation) if you are unsure.

@VitaVFX VitaVFX requested review from VitaVFX and removed request for a team January 31, 2022 08:04
Added two unit tests
@VitaVFX
Copy link

VitaVFX commented Feb 2, 2022

Did not spot errors or any other obscure behavior, thanks for the fix!

Test results:

Windows:

  • Reproduce to see if there are any unwanted outcomes

MacOS:

  • Reproduce issue with extensions .vfx .vfxoperator
  • Reimport vfx folder, reimport all, refresh
  • Upgrading downgrading the project (2022.2.0a3 <> 2022.2.0a4)
  • (out of curiosity) Building project with .vfx extension
  • Importing/exporting folder with .vfx extension as a package named with .vfx extension

@julienamsellem julienamsellem marked this pull request as ready for review February 2, 2022 13:22
@julienamsellem julienamsellem merged commit e49a5c7 into master Feb 4, 2022
@julienamsellem julienamsellem deleted the vfx/fix/1385206-import-check-is-file branch February 4, 2022 10:09
julienf-unity pushed a commit that referenced this pull request Feb 8, 2022
* Check if a path is a folder before trying to import vfx

Also added a unit test

* Updated changelog

* Removed redundant test

Added two unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants