Skip to content

Commit

Permalink
supp 'preSimplify' as original
Browse files Browse the repository at this point in the history
  • Loading branch information
littlemine committed Dec 11, 2023
1 parent 196f4f2 commit c749535
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/CUDA/utils/Primitives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,9 @@ struct PrimitiveUnmerge : INode {
auto tag = get_input2<std::string>("tagAttr");
auto method = get_input2<std::string>("method");

if (get_input2<bool>("preSimplify")) {
primSimplifyTag(prim.get(), tag);
}
if (method == "faces") {
assign_group_tag_to_verts(prim, tag);
}
Expand All @@ -1289,6 +1292,7 @@ ZENDEFNODE(PrimitiveUnmerge, {
{
{"primitive", "prim"},
{"string", "tagAttr", "tag"},
{"bool", "preSimplify", "0"},
{"enum verts faces", "method", "verts"},
},
{
Expand Down

0 comments on commit c749535

Please sign in to comment.