main #138
@ -84,7 +84,7 @@ class CurveObject extends Object {
|
|||||||
};
|
};
|
||||||
|
|
||||||
for (spline in data.splines) {
|
for (spline in data.splines) {
|
||||||
var newSpline = {
|
var newSpline: TSpline = {
|
||||||
points: [],
|
points: [],
|
||||||
closed: spline.closed,
|
closed: spline.closed,
|
||||||
resolution: spline.resolution,
|
resolution: spline.resolution,
|
||||||
@ -441,7 +441,7 @@ class CurveObject extends Object {
|
|||||||
|
|
||||||
for (splineIndex in 0...splinesLength) {
|
for (splineIndex in 0...splinesLength) {
|
||||||
var spline = data.splines[splineIndex];
|
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, []);
|
if (!indicesByMaterial.exists(matIdx)) indicesByMaterial.set(matIdx, []);
|
||||||
var indices = indicesByMaterial.get(matIdx);
|
var indices = indicesByMaterial.get(matIdx);
|
||||||
|
|
||||||
@ -704,7 +704,7 @@ class CurveObject extends Object {
|
|||||||
|
|
||||||
for (splineIndex in 0...splinesLength) {
|
for (splineIndex in 0...splinesLength) {
|
||||||
var spline = data.splines[splineIndex];
|
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, []);
|
if (!indicesByMaterial.exists(matIdx)) indicesByMaterial.set(matIdx, []);
|
||||||
var indices = indicesByMaterial.get(matIdx);
|
var indices = indicesByMaterial.get(matIdx);
|
||||||
|
|
||||||
@ -1032,7 +1032,8 @@ class CurveObject extends Object {
|
|||||||
if (basePos == null) return null;
|
if (basePos == null) return null;
|
||||||
|
|
||||||
var baseVertCount = Std.int(basePos.length / 4);
|
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 minVal = 1e10;
|
||||||
var maxVal = -1e10;
|
var maxVal = -1e10;
|
||||||
|
|||||||
@ -968,6 +968,7 @@ class DebugConsole extends Trait {
|
|||||||
ui.unindent();
|
ui.unindent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if js
|
||||||
if (ui.panel(Id.handle({selected: false}), "Console")) {
|
if (ui.panel(Id.handle({selected: false}), "Console")) {
|
||||||
ui.indent();
|
ui.indent();
|
||||||
var t = ui.textInput(Id.handle());
|
var t = ui.textInput(Id.handle());
|
||||||
@ -977,6 +978,7 @@ class DebugConsole extends Trait {
|
|||||||
}
|
}
|
||||||
ui.unindent();
|
ui.unindent();
|
||||||
}
|
}
|
||||||
|
#end
|
||||||
}
|
}
|
||||||
if (ui.tab(htab, lastTraces[0] == "" ? "Console" : lastTraces[0].substr(0, 20))) {
|
if (ui.tab(htab, lastTraces[0] == "" ? "Console" : lastTraces[0].substr(0, 20))) {
|
||||||
#if js
|
#if js
|
||||||
|
|||||||
Reference in New Issue
Block a user