We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abdc29f commit a89263bCopy full SHA for a89263b
node-graph/gcore/src/vector/generator_nodes.rs
@@ -1,5 +1,6 @@
1
use crate::Ctx;
2
use crate::vector::{HandleId, VectorData, VectorDataTable};
3
+use crate::graphene_core::num_traits::FromPrimitive;
4
use bezier_rs::Subpath;
5
use glam::DVec2;
6
@@ -72,7 +73,7 @@ fn rectangle<T: CornerRadius>(
72
73
}
74
75
#[node_macro::node(category("Vector: Shape"))]
-fn regular_polygon<T: AsU64>(
76
+fn regular_polygon<T: AsU64 + std::cmp::PartialOrd + FromPrimitive >(
77
_: impl Ctx,
78
_primary: (),
79
#[default(6)]
@@ -87,7 +88,7 @@ fn regular_polygon<T: AsU64>(
87
88
89
90
-fn star<T: AsU64>(
91
+fn star<T: AsU64 + std::cmp::PartialOrd + FromPrimitive>(
92
93
94
#[default(5)]
0 commit comments