Skip to content

Commit

Permalink
Remove mangle hack.
Browse files Browse the repository at this point in the history
  • Loading branch information
dumganhar committed Nov 25, 2024
1 parent 201b9df commit 9a4810d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions cocos/core/geometry/spline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,25 +94,13 @@ export class Spline {
private declare _mode: SplineMode;
private _knots: Vec3[] = [];

// The private properties '_mode' and '_knots' are used in 'jsb_conversions_spec.cpp' for native platforms.
// bool sevalue_to_native(const se::Value &from, cc::geometry::Spline *to, se::Object * /*unused*/)
// So declare them here and add references in constructor.
private declare _mode: SplineMode;
private declare _knots: Vec3[];
//

private constructor (mode: SplineMode = SplineMode.CATMULL_ROM, knots: Readonly<Vec3[]> = []) {
this._type = ShapeType.SHAPE_SPLINE;
this._mode = mode;

for (let i = 0; i < knots.length; i++) {
this._knots[i] = new Vec3(knots[i]);
}

if (JSB) {
this._mode = this._mode;
this._knots = this._knots;
}
}

/**
Expand Down

0 comments on commit 9a4810d

Please sign in to comment.