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 rotopaint overlay #982

Closed
wants to merge 19 commits into from
Closed

Fix rotopaint overlay #982

wants to merge 19 commits into from

Conversation

devernay
Copy link
Member

Thanks for submitting a pull request! Please provide enough information so that others can review your pull request. Additionally, make sure you've done all of these things:

PR Description

What type of PR is this? (Check one of the boxes below)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Improvement (non-breaking change which does not add functionality nor fixes a bug but improves Natron in some way)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • My change requires a change to the documentation
    • I have updated the documentation accordingly

What does this pull request do?

With many overlay tools, the tool cursor is par of the overlay, so the overlay should always be refreshed on pen motion with these tools.

mruegenberg and others added 18 commits March 15, 2024 21:31
Bountysource appears to be dead, so it should be removed
Msys2 updated gcc in the last few days which has caused the package
repo build to fail. Here are some minor fixes to make the build work
again.

- Add fmt to openimageio's dependency list since the version included
  with the openimageio source now appears to cause an internal compiler
  error.

- Added an include for math.h to in a libsox test file to make the
  compiler stop generating an error about fabs() not being defined.

- Fix type mismatch and missing declaration errors in ImageMagick.

- Updated mingw-w64-dump_syms gitcommit to point to a version that
  fixes a missing header build error.
Msys2's libcurl package was recently updated to enable HTTP/3
support which means it now also depends on libnghttp3.
genDllVersions.sh was updated to include this new dependency.

The Windows installer build action was also changed to upload its
build artifacts before it tests to make sure the plugins load. This
makes it possible to look at the generated artifacts for missing
dependencies if the plugin load verification fails.
- Force Shiboken to use detected python libraries instead of
  using its own library detection logic.
- Specify -O compiler option for debug builds like the qmake build.
- Remove unconditional NDEBUG define added by the Shiboken cmake
  helper so that asserts work correctly on debug builds.
This fixes asserts in debug builds where Qt's GL context is set when
a ScopedGLContext is created. This can happen when we have a project
open and the user tries to open another project. When the event
callback is dispatched, the Qt GL context is still set. The fix
justs removes the assert and adds logic to save and restore any
existing GL context that is set.
@acolwell
Copy link
Collaborator

I'm assuming that the last commit is the only thing you are actually trying to change. I suspect you may need to do something like "git rebase --onto RB-2.6 08b1c1a" and then force push to get this PR to only contain that last commit.

The changes in that last commit look ok to me. I'm not very familiar with this code, but I'm wondering if the redraw assignment around line 2770 should be modified from "redraw = " to "redraw |=" so that it doesn't accidentally cancel the value you set in your new logic.

@rodlie
Copy link
Contributor

rodlie commented Jul 20, 2024

Can confirm that 08b1c1a fixes the broken overlay, thanks 👍

@devernay
Copy link
Member Author

line 2770 should be modified from "redraw = " to "redraw |="

done in latest commit (I prefered explicitly setting redrew = true if necessary, for readability)

@devernay
Copy link
Member Author

mmoving to a PR on RB-2.5

@devernay devernay closed this Jul 22, 2024
@devernay devernay deleted the fix-rotopaint-overlay branch July 22, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants