kevancress / MeasureIt_ARCH

MeasureIt_ARCH is an addon for Blender, that adds tools to create design documentation and technical drawings that can be previewed within Blender's 3D viewport, and exported as images, vector graphics or .dxf files. Read the Doc's here:
https://kevancress.github.io/MeasureIt_ARCH/
Other
255 stars 36 forks source link

Enabling MeasureIt_ARCH fails if SCENE_PT_unit class has been unregistered #269

Closed kevancress closed 5 months ago

kevancress commented 6 months ago

MeasureIt_ARCH fails to enable if Blenders default UI classes have been unregistered.

Specifically this is happening with the SCENE_PT_unit class when BlenderBIM is enabled. Should be able to add a simple check to see if the parent class is present before adding MeasureIt_ARCH ui panels as subpanels. If Blender's default UI classes are not available, we can use the default MeasureIt_ARCH panel as the parent.

@Moult just wanted to give you a heads up on this one, pretty sure I can solve this with the check described above, but I think unregistering and overriding Blender's default UI classes for the Scene Properties Panel in BlenderBIM will probably prevent it from working with any other addons that try and add to the default UI I imagine.

_Ref @haukj in https://github.com/kevancress/MeasureIt_ARCH/issues/263#issuecomment-1875633993_

kevancress commented 6 months ago

@haukj just added a commit, latest version should enable even if the default Scene units UI panel is not registered.

kevancress commented 5 months ago

@haukj Closing this for now. Feel free to re-open if its still an issue.