mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
26 lines
677 B
Python
26 lines
677 B
Python
# Copyright (c) 2025 UltiMaker
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from UM.Logger import Logger
|
|
|
|
from typing import TYPE_CHECKING, Dict, Any
|
|
|
|
if TYPE_CHECKING:
|
|
from UM.Application import Application
|
|
|
|
|
|
def getMetaData() -> Dict[str, Any]:
|
|
return {
|
|
"tool": {
|
|
"visible": False
|
|
}
|
|
}
|
|
|
|
|
|
def register(app: "Application") -> Dict[str, Any]:
|
|
try:
|
|
from .NavlibClient import NavlibClient
|
|
return { "tool": NavlibClient(app.getController().getScene(), app.getRenderer()) }
|
|
except BaseException as exception:
|
|
Logger.warning(f"Unable to load 3Dconnexion library: {exception}")
|
|
return { }
|