Skip to content

Commit 9f5c033

Browse files
committed
V1.3. Curve Tilt support.
1 parent 1a6e345 commit 9f5c033

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

BEngine-Py/bengine/Utils/BEUtilsGeo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,11 @@ def CurvesFromJSON(js_obj, engine_type: EngineType, import_as_curve: bool):
148148
polyline.points.add(verts_len - len(polyline.points)) # Here we Substract 1 Point
149149
polyline.points.foreach_set('co', np_verts)
150150

151+
# Add Tilt
152+
if "Tilt" in js_curve_elem.keys():
153+
np_tilt = np.asarray(js_curve_elem["Tilt"], dtype=np.float32)
154+
polyline.points.foreach_set('tilt', np_tilt)
155+
151156
# Set Open/Closed
152157
polyline.use_cyclic_u = js_curve_elem["IsClosed"]
153158

BEngine-Py/bengine/Version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = 1.2
1+
VERSION = 1.3

0 commit comments

Comments
 (0)