Hashlink Compile - Curve/Console

This commit is contained in:
2026-09-08 22:34:51 -07:00
parent 42fdff4757
commit 6d07e70b11
2 changed files with 7 additions and 4 deletions

View File

@ -84,7 +84,7 @@ class CurveObject extends Object {
};
for (spline in data.splines) {
var newSpline = {
var newSpline: TSpline = {
points: [],
closed: spline.closed,
resolution: spline.resolution,
@ -441,7 +441,7 @@ class CurveObject extends Object {
for (splineIndex in 0...splinesLength) {
var spline = data.splines[splineIndex];
var matIdx = spline.material_index != null ? spline.material_index : 0;
var matIdx = spline.material_index;
if (!indicesByMaterial.exists(matIdx)) indicesByMaterial.set(matIdx, []);
var indices = indicesByMaterial.get(matIdx);
@ -704,7 +704,7 @@ class CurveObject extends Object {
for (splineIndex in 0...splinesLength) {
var spline = data.splines[splineIndex];
var matIdx = spline.material_index != null ? spline.material_index : 0;
var matIdx = spline.material_index;
if (!indicesByMaterial.exists(matIdx)) indicesByMaterial.set(matIdx, []);
var indices = indicesByMaterial.get(matIdx);
@ -1032,7 +1032,8 @@ class CurveObject extends Object {
if (basePos == null) return null;
var baseVertCount = Std.int(basePos.length / 4);
var baseScale = baseRaw.scale_pos;
var baseScale: kha.FastFloat = 1.0;
if (baseRaw.scale_pos != null) baseScale = baseRaw.scale_pos;
var minVal = 1e10;
var maxVal = -1e10;