Skip to content

Commit

Permalink
improve-PrimFillAttr
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouhang95 committed Jan 23, 2025
1 parent b4ed874 commit f71523e
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions zeno/src/nodes/neo/PrimAttrOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,23 @@ struct PrimFillAttr : INode {
std::fill(arr.begin(), arr.end(), val);
}
}, enum_variant<std::variant<
float, vec3f, int
float
, vec2f
, vec3f
, vec4f
, int
, vec2i
, vec3i
, vec4i
>>(array_index({
"float", "vec3f", "int"
"float"
, "vec2f"
, "vec3f"
, "vec4f"
, "int"
, "vec2i"
, "vec3i"
, "vec4i"
}, type)));
set_output("prim", std::move(prim));
}
Expand All @@ -57,7 +71,7 @@ ZENDEFNODE(PrimFillAttr, {
{"PrimitiveObject", "prim"},
{"enum vert tri loop poly line", "scope", "vert"},
{"string", "attr", "rad"},
{"enum float vec3f int", "type", "float"},
{"enum float vec2f vec3f vec4f int vec2i vec3i vec4i", "type", "float"},
{"float", "value", "0"},
},
{
Expand Down

0 comments on commit f71523e

Please sign in to comment.