Skip to content

Commit a89263b

Browse files
committed
fix traits
1 parent abdc29f commit a89263b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

node-graph/gcore/src/vector/generator_nodes.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use crate::Ctx;
22
use crate::vector::{HandleId, VectorData, VectorDataTable};
3+
use crate::graphene_core::num_traits::FromPrimitive;
34
use bezier_rs::Subpath;
45
use glam::DVec2;
56

@@ -72,7 +73,7 @@ fn rectangle<T: CornerRadius>(
7273
}
7374

7475
#[node_macro::node(category("Vector: Shape"))]
75-
fn regular_polygon<T: AsU64>(
76+
fn regular_polygon<T: AsU64 + std::cmp::PartialOrd + FromPrimitive >(
7677
_: impl Ctx,
7778
_primary: (),
7879
#[default(6)]
@@ -87,7 +88,7 @@ fn regular_polygon<T: AsU64>(
8788
}
8889

8990
#[node_macro::node(category("Vector: Shape"))]
90-
fn star<T: AsU64>(
91+
fn star<T: AsU64 + std::cmp::PartialOrd + FromPrimitive>(
9192
_: impl Ctx,
9293
_primary: (),
9394
#[default(5)]

0 commit comments

Comments
 (0)