Skip to content

fix: remove_physics_callback called with extra argument - #68

Open
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/extension-a93bd710
Open

fix: remove_physics_callback called with extra argument#68
andrewwhitecdw wants to merge 1 commit into
NVlabs:mainfrom
andrewwhitecdw:bugfix/extension-a93bd710

Conversation

@andrewwhitecdw

Copy link
Copy Markdown

This PR addresses the following issue in exts/omni.ext.mobility_gen/omni/ext/mobility_gen/extension.py: remove_physics_callback called with extra argument.

Changes

  • exts/omni.ext.mobility_gen/omni/ext/mobility_gen/extension.py: remove_physics_callback called with extra argument.

Details

Before:

        world = get_world()
        world.remove_physics_callback("scenario_physics", self.on_physics)

After:

        world = get_world()
        if world is not None:
            try:
                world.remove_physics_callback("scenario_physics")
            except Exception:
                pass

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.

1 participant