Fix Smoothstep node, params were not initialized
parent
973cf729cd
commit
b2ca66e714
|
@ -722,8 +722,8 @@ VoxelGraphNodeDB::VoxelGraphNodeDB() {
|
||||||
t.compile_func = [](CompileContext &ctx) {
|
t.compile_func = [](CompileContext &ctx) {
|
||||||
const ProgramGraph::Node &node = ctx.get_node();
|
const ProgramGraph::Node &node = ctx.get_node();
|
||||||
Params p;
|
Params p;
|
||||||
const float min0 = node.params[0].operator float();
|
p.edge0 = node.params[0].operator float();
|
||||||
const float max0 = node.params[1].operator float();
|
p.edge1 = node.params[1].operator float();
|
||||||
ctx.set_params(p);
|
ctx.set_params(p);
|
||||||
};
|
};
|
||||||
t.process_buffer_func = [](ProcessBufferContext &ctx) {
|
t.process_buffer_func = [](ProcessBufferContext &ctx) {
|
||||||
|
@ -1208,7 +1208,6 @@ VoxelGraphNodeDB::VoxelGraphNodeDB() {
|
||||||
ctx.set_output(3, len);
|
ctx.set_output(3, len);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// TODO
|
|
||||||
{
|
{
|
||||||
struct Params {
|
struct Params {
|
||||||
FastNoiseLite *noise;
|
FastNoiseLite *noise;
|
||||||
|
|
Loading…
Reference in New Issue