Format
This commit is contained in:
@@ -32,9 +32,9 @@ function variance_node_buttons(ui: zui_t, nodes: zui_nodes_t, node: zui_node_t)
|
||||
}
|
||||
|
||||
function variance_node_get_as_image(self: variance_node_t, from: i32): image_t {
|
||||
let strength = (variance_node_inst.inputs[1].node as any).value;
|
||||
let strength: f32 = variance_node_inst.base.inputs[1].node.value;
|
||||
|
||||
let source: image_t = variance_node_inst.inputs[0].get_as_image();
|
||||
let source: image_t = logic_node_input_get_as_image(variance_node_inst.base.inputs[0]);
|
||||
g2_begin(variance_node_temp);
|
||||
g2_draw_scaled_image(source, 0, 0, 512, 512);
|
||||
g2_end();
|
||||
|
||||
@@ -262,9 +262,9 @@ function render_path_paint_bind_layers() {
|
||||
let canvas = ui_nodes_get_canvas(true);
|
||||
if (nodes.nodes_selected_id.length > 0) {
|
||||
let node = zui_get_node(canvas.nodes, nodes.nodes_selected_id[0]);
|
||||
let brushNode = parser_logic_get_logic_node(node);
|
||||
if (brushNode != null) {
|
||||
image = brushNode.get_cached_image();
|
||||
let brush_node: inpaint_node_t = parser_logic_get_logic_node(node);
|
||||
if (brush_node: inpaint_node_t != null) {
|
||||
image = brush_node: inpaint_node_t.get_cached_image();
|
||||
}
|
||||
}
|
||||
if (image != null) {
|
||||
@@ -294,8 +294,8 @@ function render_path_paint_bind_layers() {
|
||||
let node = zui_get_node(canvas.nodes, nodes.nodes_selected_id[0]);
|
||||
let inpaint = node.type == "InpaintNode";
|
||||
if (inpaint) {
|
||||
let brushNode = parser_logic_get_logic_node(node);
|
||||
map_get(render_path_render_targets, "texpaint_node_target")._image = (brushNode as InpaintNode).getTarget();
|
||||
let brush_node: inpaint_node_t = parser_logic_get_logic_node(node);
|
||||
map_get(render_path_render_targets, "texpaint_node_target")._image = inpaint_node_get_target(brush_node);
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user