Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mifth/BEngine-Python-Module
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.2
Choose a base ref
...
head repository: mifth/BEngine-Python-Module
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Feb 23, 2025

  1. V1.3. Curve Tilt support.

    mifth committed Feb 23, 2025
    Copy the full SHA
    9f5c033 View commit details
Showing with 6 additions and 1 deletion.
  1. +5 −0 BEngine-Py/bengine/Utils/BEUtilsGeo.py
  2. +1 −1 BEngine-Py/bengine/Version.py
5 changes: 5 additions & 0 deletions BEngine-Py/bengine/Utils/BEUtilsGeo.py
Original file line number Diff line number Diff line change
@@ -148,6 +148,11 @@ def CurvesFromJSON(js_obj, engine_type: EngineType, import_as_curve: bool):
polyline.points.add(verts_len - len(polyline.points)) # Here we Substract 1 Point
polyline.points.foreach_set('co', np_verts)

# Add Tilt
if "Tilt" in js_curve_elem.keys():
np_tilt = np.asarray(js_curve_elem["Tilt"], dtype=np.float32)
polyline.points.foreach_set('tilt', np_tilt)

# Set Open/Closed
polyline.use_cyclic_u = js_curve_elem["IsClosed"]

2 changes: 1 addition & 1 deletion BEngine-Py/bengine/Version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = 1.2
VERSION = 1.3