Skip to content

Conversation

@damienmarchal
Copy link
Contributor

Currently the controllers implemented in python cannot report the the event processing system in sofa that there is no need anymore to process the event.

The PR allows to do. Every onXXXXXX() that implement an event processor can no return a value. If it is None or False then processing of event use this to continue the propagation If it is True (aka: has been processed/no more further), then the SOFA system will not proposed to other component to process the same event

Connected with sofa-framework/sofa#5749

Currently the controllers implemented in python cannot report the the event processing
system in sofa that there is no need anymore to process the event.

The PR allows to do. Every onXXXXXX() that implement an event processor can no return a value.
If it is None or False then processing of event use this to continue the propagation
If it is True (aka: has been processed/no more further), then the SOFA system will not proposed to other component to process the same event
@damienmarchal damienmarchal changed the title Add proper return value to event overriden in python Add support for event pruning for the events overriden in python controllers Oct 27, 2025
@hugtalbot hugtalbot merged commit 72ed0e6 into sofa-framework:master Oct 30, 2025
4 checks passed
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