ucupumar / ucupaint

Ucupaint is Blender addon to manage texture layers for Eevee and Cycles renderer.
GNU General Public License v3.0
874 stars 31 forks source link

Fix crash of vcol_editor.py #94

Closed morirain closed 4 months ago

morirain commented 4 months ago
def unregister():
    ypup = get_user_preferences()    # may be None
    if ypup and not hasattr(ypup, 'show_experimental') or ypup.show_experimental:
        bpy.utils.unregister_class(VIEW3D_PT_y_vcol_editor_ui)
        if not is_greater_than_280():
            bpy.utils.unregister_class(VIEW3D_PT_y_vcol_editor_tools)
ucupumar commented 4 months ago

Oh, okay. I didn't know ypup does not always exist