main #138

Merged
LeenkxTeam merged 5 commits from Onek8/LNXSDK:main into main 2026-09-09 05:42:52 +00:00
15 changed files with 255 additions and 30 deletions
Showing only changes of commit 6d07e70b11 - Show all commits

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;

View File

@ -968,6 +968,7 @@ class DebugConsole extends Trait {
ui.unindent();
}
#if js
if (ui.panel(Id.handle({selected: false}), "Console")) {
ui.indent();
var t = ui.textInput(Id.handle());
@ -977,6 +978,7 @@ class DebugConsole extends Trait {
}
ui.unindent();
}
#end
}
if (ui.tab(htab, lastTraces[0] == "" ? "Console" : lastTraces[0].substr(0, 20))) {
#if js