mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-27 00:23:55 -06:00
Send texture data to the engine
CURA-12574
This commit is contained in:
parent
7dcc5cd470
commit
be14fc7dd6
4 changed files with 45 additions and 28 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue