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

fix: fixes loading presets with textures referencing groups #591

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

2xAA
Copy link
Member

@2xAA 2xAA commented Jun 24, 2021

Updates groups and outputContexts to share the same ID on creation. This fixes bad references when loading presets with texture types saved with a group reference

fixes #590

Updates groups and outputContexts to share the same ID on creation. This fixes bad references when
loading presets with texture types saved with a group reference

fixes #590
@2xAA 2xAA requested a review from TimPietrusky June 24, 2021 20:52
@TimPietrusky
Copy link
Member

Tested it and it doesn't work for me. When loading the preset and clicking on Texture 2D, then canvas is selected as the type, not group.

Steps to reproduce:

  1. Create a group and rename it to "My Texture Group"
  2. Add a module to it
  3. Create another group and add "Texture 2D" to it
  4. Select "My Texture Group" as the group for "Texture 2D"
    a. See that the renaming of the group is not reflected in the list of groups (possible new bug)
  5. Save the preset
  6. Reload modV
  7. Load the preset
  8. See that canvas is selected and not group

@2xAA
Copy link
Member Author

2xAA commented Jun 25, 2021

@TimPietrusky the canvas is the correct one it seems, just we're not reflecting that it's the one for the group in the UI.
I'll work on this PR - thanks for testing.

the group texture type is identical to the canvas type, but it signals to the UI to show it as a
group instead.

re #590
@2xAA
Copy link
Member Author

2xAA commented Jun 27, 2021

@TimPietrusky please can you test again with the new commit?
It works here.

Copy link
Member

@TimPietrusky TimPietrusky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works. Thank you very much <3

Opened a new ticket for the "renamed group"-bug as mentioned above: #599

@TimPietrusky TimPietrusky merged commit 9dfeff5 into next Jun 29, 2021
@TimPietrusky TimPietrusky deleted the fix/590/textureReferencingGroupsInPreset branch June 29, 2021 09:29
2xAA pushed a commit that referenced this pull request Jun 30, 2021
## [3.17.2](3.17.1...3.17.2) (2021-06-30)

### Bug Fixes

* **deps:** Use correct format to load vcync/interactive-shader-format-js ([553f4f9](553f4f9))
* fixes loading presets with textures referencing groups ([#591](#591)) ([9dfeff5](9dfeff5)), closes [#590](#590) [#590](#590)
* **mathjs:** updates mathjs to v7 from v3 ([#595](#595)) ([32585cc](32585cc)), closes [#594](#594)
@2xAA
Copy link
Member Author

2xAA commented Jun 30, 2021

🎉 This PR is included in version 3.17.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@2xAA 2xAA added the released label Jun 30, 2021
2xAA pushed a commit that referenced this pull request Jul 1, 2021
# [3.18.0](3.17.1...3.18.0) (2021-07-01)

### Bug Fixes

* updates a group's outputContext name when group's name is updated ([#604](#604)) ([a0db3c9](a0db3c9)), closes [#599](#599)
* **deps:** Use correct format to load vcync/interactive-shader-format-js ([553f4f9](553f4f9))
* fixes loading presets with textures referencing groups ([#591](#591)) ([9dfeff5](9dfeff5)), closes [#590](#590) [#590](#590)
* **mathjs:** updates mathjs to v7 from v3 ([#595](#595)) ([32585cc](32585cc)), closes [#594](#594)

### Features

* **fft:** adds fft ([#611](#611)) ([f9f2b90](f9f2b90))
* **grabCanvas:** Adds grab-canvas as a plugin ([#612](#612)) ([d7ca887](d7ca887)), closes [#366](#366) [#366](#366)
* adds localStorage saving for audio and video inputs ([#608](#608)) ([33109cd](33109cd)), closes [#470](#470)
* **gallery:** updates ordering of modules to be alphabetical ([#606](#606)) ([48f0075](48f0075)), closes [#605](#605)
* **group-inheritance:** adds group inheritance option ([#607](#607)) ([1894eda](1894eda)), closes [#603](#603)
@2xAA
Copy link
Member Author

2xAA commented Jul 1, 2021

🎉 This PR is included in version 3.18.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

2xAA pushed a commit that referenced this pull request Jan 7, 2022
## [3.17.2](3.17.1...3.17.2) (2021-06-30)

### Bug Fixes

* **deps:** Use correct format to load vcync/interactive-shader-format-js ([553f4f9](553f4f9))
* fixes loading presets with textures referencing groups ([#591](#591)) ([9dfeff5](9dfeff5)), closes [#590](#590) [#590](#590)
* **mathjs:** updates mathjs to v7 from v3 ([#595](#595)) ([32585cc](32585cc)), closes [#594](#594)
2xAA pushed a commit that referenced this pull request Jan 7, 2022
# [3.18.0](3.17.1...3.18.0) (2021-07-01)

### Bug Fixes

* updates a group's outputContext name when group's name is updated ([#604](#604)) ([a0db3c9](a0db3c9)), closes [#599](#599)
* **deps:** Use correct format to load vcync/interactive-shader-format-js ([553f4f9](553f4f9))
* fixes loading presets with textures referencing groups ([#591](#591)) ([9dfeff5](9dfeff5)), closes [#590](#590) [#590](#590)
* **mathjs:** updates mathjs to v7 from v3 ([#595](#595)) ([32585cc](32585cc)), closes [#594](#594)

### Features

* **fft:** adds fft ([#611](#611)) ([f9f2b90](f9f2b90))
* **grabCanvas:** Adds grab-canvas as a plugin ([#612](#612)) ([d7ca887](d7ca887)), closes [#366](#366) [#366](#366)
* adds localStorage saving for audio and video inputs ([#608](#608)) ([33109cd](33109cd)), closes [#470](#470)
* **gallery:** updates ordering of modules to be alphabetical ([#606](#606)) ([48f0075](48f0075)), closes [#605](#605)
* **group-inheritance:** adds group inheritance option ([#607](#607)) ([1894eda](1894eda)), closes [#603](#603)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Presets] Texture Types referencing groups lose their ID when saved as preset
2 participants