Skip to content

Blender 5.0 compatibility #254

@okuma10

Description

@okuma10

I'm always using Blender's nightly versions. So I'm on 5.0 and the UI wasn't loading. I looked up the errors and it appears that oddly the API was throwing an error on you separator wrapper. It was saying that "type" should be a keyword argument.

I looked at the python code and changed the wrapers type function input to _type. And made the blender function to be separator(factor=1.0,type=_type) somehow it was complaining that there was no factor...which is odd since in the API Doc it says "(optional)". So I ended up having to edit every spot you used bui.separator() to have _type.

Also it looks like in 5.0 they've dropped "NONE" from the enumerator, so I replaced "NONE" with "SPACE", and so far everything in the UI appears to work correctly.
I haven't tested every feature but the material layering appears to be working fine(since that's the only thing I'm interested in, at the moment).

The files I edited were bpy_ui_wrappers.py, ui_edit_layers.py, ui_render_devices.py ,ui_mesh_map.py

So yeah....

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