leukbaars / DreamUV

DreamUV - 3D viewport UV editing tools for Blender
1.35k stars 58 forks source link

Panel crash on entirely blank scene #30

Open cos1110 opened 1 year ago

cos1110 commented 1 year ago

When the scene is entirely blank, without any object at all the View3D panel crashes.

An idea for a fix:

class DREAMUV_PT_uv(bpy.types.Panel):
    ...
    @classmethod
    def poll(cls, context):
        return len(context.scene.objects) > 0