Skip to content

Commit 2667def

Browse files
committed
Convert construction geometry
1 parent e07a262 commit 2667def

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

converters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ def _get_entities(self) -> List:
5555
continue
5656
if not entity.is_path():
5757
continue
58-
if hasattr(entity, "construction") and entity.construction:
59-
continue
6058
entities.append(entity)
6159

6260
return entities
@@ -94,6 +92,7 @@ def to_bezier(self, curve_data: bpy.types.Curve):
9492
# Set curve attributes
9593
set_attribute(curve_data.attributes, "resolution", self.sketch.curve_resolution, entity_index)
9694
set_attribute(curve_data.attributes, "cyclic", is_cyclic, entity_index)
95+
set_attribute(curve_data.attributes, "construction", entity.construction, entity_index)
9796

9897
# Setup points for the to_bezier call
9998
start_point = curve_slice.points[0]
@@ -150,6 +149,7 @@ def _ensure_attributes(cls, curve_data):
150149
_ensure_attrribute(attributes, "resolution", "INT", "CURVE")
151150
_ensure_attrribute(attributes, "entity_index", "INT", "POINT")
152151
_ensure_attrribute(attributes, "segment_entity_index", "INT", "CURVE")
152+
_ensure_attrribute(attributes, "construction", "BOOLEAN", "CURVE")
153153

154154

155155
def mesh_from_temporary(mesh: Mesh, name: str, existing_mesh: Union[bool, None] = None):

resources/assets.blend

125 KB
Binary file not shown.

resources/assets.blend1

-512 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)