Skip to content

Multiple removeCallback calls in pymel #463

@cruz1n

Description

@cruz1n

Pymel will call removeCallback for already-loaded plugins if the plugins are loaded again. This occurs here: https://github.com/LumaPictures/pymel/blob/master/pymel/core/__init__.py#L247

If a callback is removed via this code path, the internal callback cache is not updated to reflect this, which can result in a redundant removeCallback call here: https://github.com/LumaPictures/pymel/blob/master/pymel/core/__init__.py#L213

The workaround is to add the following code after removing the callback at line 247: _pluginData[pluginName]['callbackId'] = None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions