mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-10-08 15:26:30 +08:00

Should be able to paint pixels now if the tools is active, and the model loaded is with UV-coords (that rules out our current impl. of 3MF at the moment -- use OBJ instead), and you position the model outside of the build-plate so the paint-shadr that is temporarily replacing the 'disabled' one is showing. Will need a lot of extra features and optimizations still! part of CURA-12543
22 lines
559 B
Python
22 lines
559 B
Python
# Copyright (c) 2025 UltiMaker
|
|
# Cura is released under the terms of the LGPLv3 or higher.
|
|
|
|
from . import PaintTool
|
|
|
|
from UM.i18n import i18nCatalog
|
|
i18n_catalog = i18nCatalog("cura")
|
|
|
|
def getMetaData():
|
|
return {
|
|
"tool": {
|
|
"name": i18n_catalog.i18nc("@action:button", "Paint"),
|
|
"description": i18n_catalog.i18nc("@info:tooltip", "Paint Model"),
|
|
"icon": "Visual",
|
|
"tool_panel": "PaintTool.qml",
|
|
"weight": 0
|
|
}
|
|
}
|
|
|
|
def register(app):
|
|
return { "tool": PaintTool.PaintTool() }
|