Articy3ImporterForUnreal icon indicating copy to clipboard operation
Articy3ImporterForUnreal copied to clipboard

Fixed EArticyPausableType bit flags to be used correctly

Open reidtreharne opened this issue 2 years ago • 2 comments

  • The EArticyPausableType was not set up correctly, causing pause events to happen when they shouldn't. Changed the enum to use proper bit flags which fixed the issue.
  • Removed the SetPauseOn function since it is no longer needed as you can set the public PauseOn variable directly (it also had the enum entries in the wrong order)

reidtreharne avatar Dec 09 '22 18:12 reidtreharne

Upvoted!

kroaton avatar Mar 09 '23 19:03 kroaton

@lpinkhard I ran into an issue while implementing Articy in C++. SetPauseOn wasn't behaving as expected. The code in this PR solved my problem.

Prior to using the code in the PR I was using SetPauseOn in the following manner:

        ArticyFlowPlayer->SetPauseOn(EArticyPausableType::Dialogue);
        ArticyFlowPlayer->SetPauseOn(EArticyPausableType::DialogueFragment);

The result was that it would pause on Flow which was unintended. Luckily I was aware of this PR and had kept it in mind during my implementation. I copied his changes into my clone of this repo and switch the snippet above to:

ArticyFlowPlayer->PauseOn = uint8(EArticyPausableType::Dialogue) | uint8(EArticyPausableType::DialogueFragment);

This worked as intended.

I wanted to give some more context and bring this PR to your attention so that it might be integrated / tested for use in master and for anyone else who stumbles on this issue.

j-funk avatar May 27 '24 21:05 j-funk