Skip to content

Commit 680c042

Browse files
authored
Merge pull request #7 from Ultimaker/CURA-12544_saving-and-loading-painted-files-in-Cura
CURA-12544 saving and loading painted files in cura
2 parents 9eeb663 + 6445745 commit 680c042

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

python/MeshData.sip

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Ultimaker B.V.
1+
// Copyright (c) 2025 Ultimaker B.V.
22
// pySavitar is released under the terms of the LGPLv3 or higher.
33

44
class MeshData
@@ -17,4 +17,10 @@ public:
1717
void setVerticesFromBytes(const bytearray& data);
1818

1919
void setFacesFromBytes(const bytearray& data);
20-
};
20+
21+
bytearray getUVCoordinatesPerVertexAsBytes(const Scene* scene) const;
22+
23+
void setUVCoordinatesPerVertexAsBytes(const bytearray& data, const std::string& texture_path, Scene* scene);
24+
25+
std::string getTexturePath(const Scene* scene) const;
26+
};

python/SceneNode.sip

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2022 Ultimaker B.V.
1+
// Copyright (c) 2025 Ultimaker B.V.
22
// pySavitar is released under the terms of the LGPLv3 or higher.
33

44
class SceneNode
@@ -20,8 +20,8 @@ public:
2020
std::string getName();
2121
void setName(std::string name);
2222

23-
std::string getId();
24-
void setId(std::string id);
23+
int getId();
24+
void setId(const int id);
2525

2626
const std::map<std::string, MetadataEntry>& getSettings() const;
2727
void setSetting(const std::string& key, MetadataEntry& entry);

0 commit comments

Comments
 (0)