Skip to content

Commit

Permalink
Fix picking on a default plane mesh
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Jan 16, 2025
1 parent 6a3208b commit b9d762d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion armorpaint/sources/render_path_paint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,16 @@ function render_path_paint_commands_paint(dilation: bool = true) {
render_path_bind_target("texpaint" + tid, "texpaint");
render_path_bind_target("texpaint_nor" + tid, "texpaint_nor");
render_path_bind_target("texpaint_pack" + tid, "texpaint_pack");
render_path_draw_meshes("paint");

// Full-screen triangle pass - use plane mesh
// render_path_draw_meshes("paint");
let plane: mesh_object_t = scene_get_child(".Plane").ext;
let _visible: bool = plane.base.visible;
plane.base.visible = true;
mesh_object_render(plane, "paint", _render_path_bind_params);
plane.base.visible = _visible;
render_path_end();

if (use_live_layer) {
render_path_paint_use_live_layer(false);
}
Expand Down

0 comments on commit b9d762d

Please sign in to comment.