This commit is contained in:
luboslenco
2024-04-08 17:40:32 +02:00
parent 413f6d93ba
commit ff3e8a1197
45 changed files with 495 additions and 544 deletions
+3 -2
View File
@@ -15,12 +15,13 @@ function float_node_create(arg: f32): float_node_t {
return n;
}
function float_node_get(self: float_node_t, from: i32): any {
function float_node_get(self: float_node_t, from: i32): logic_node_value_t {
if (self.base.inputs.length > 0) {
return logic_node_input_get(self.base.inputs[0]);
}
else {
return self.value;
let v: logic_node_value_t = { _f32: self.value };
return v;
}
}