Fix display not updating when changing tool
Some checks failed
conan-package / conan-package (push) Waiting to run
unit-test / Run unit tests (push) Waiting to run
conan-package-resources / conan-package (push) Has been cancelled
printer-linter-format / Printer linter auto format (push) Has been cancelled
conan-package-resources / signal-curator (push) Has been cancelled

CURA-12660
Previous fix caused issues when moving to preview
This commit is contained in:
Erwan MATHIEU 2025-08-05 16:10:57 +02:00
parent 310128d87e
commit 2e8cc4da82

View file

@ -189,6 +189,7 @@ class PaintView(View):
def setPaintType(self, paint_type: str) -> None:
self._current_paint_type = paint_type
self._prepareDataMapping()
def _prepareDataMapping(self):
node = Selection.getAllSelectedObjects()[0]