Skip to content

Batch rendering a file with Transform Tools installed crashes on exit #27

Description

@davidgiven

In __init__.py, in register(), there's this line of code:

        km = wm.keyconfigs.addon.keymaps.new(name="SequencerPreview", space_type="SEQUENCE_EDITOR", region_type="WINDOW")

In a batch environment, where I'm calling the blender binary to make it render frames without starting up the whole UI, it seems that wm.keyconfigs.addon is None, causing an exception. It looks like the rendering actually happens but my render script thinks that Blender failed and keeps rerendering the same chunk.

I don't know if it's the right solution, but a solution is to test for None and exit early:

    if not wm.keyconfigs.addon:
        return
    km = wm.keyconfigs.addon.keymaps.new(name="SequencerPreview", space_type="SEQUENCE_EDITOR", region_type="WINDOW")

From bl_info at the top of the file:

    "version": (1, 2, 9),
    "blender": (2, 83, 0),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions