Source code for linkforge.blender.panels.link_panel

"""UI Panel for managing robot links."""

from __future__ import annotations

import contextlib

import bpy
from bpy.types import Context, Panel

from ..constants import (
    SUFFIX_COLLISION,
    SUFFIX_VISUAL,
)
from ..core.constants import (
    GEOM_MESH,
)
from ..properties.geom_props import PROP_GEOM
from ..utils.joint_utils import get_connected_joints_for_link
from ..utils.property_helpers import get_joint_props, get_link_props






# Registration
classes = [
    LINKFORGE_PT_links,
]


[docs] def register() -> None: """Register panel.""" for cls in classes: try: bpy.utils.register_class(cls) except ValueError: bpy.utils.unregister_class(cls) bpy.utils.register_class(cls)
[docs] def unregister() -> None: """Unregister panel.""" for cls in reversed(classes): with contextlib.suppress(RuntimeError): bpy.utils.unregister_class(cls)
if __name__ == "__main__": register()