Send texture data to the engine

CURA-12574
This commit is contained in:
Erwan MATHIEU 2025-06-24 13:36:49 +02:00
parent 7dcc5cd470
commit be14fc7dd6
4 changed files with 45 additions and 28 deletions

View file

@ -509,6 +509,14 @@ class StartSliceJob(Job):
obj.vertices = flat_verts
uv_coordinates = mesh_data.getUVCoordinates()
if uv_coordinates is not None:
obj.uv_coordinates = uv_coordinates.flatten()
packed_texture = object.callDecoration("packTexture")
if packed_texture is not None:
obj.texture = packed_texture
self._handlePerObjectSettings(cast(CuraSceneNode, object), obj)
Job.yieldThread()