mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-15 14:18:04 +08:00
Add the "Type Assertion" node catalog category (#4452)
This commit is contained in:
@@ -1284,7 +1284,7 @@ async fn dimensions(_: impl Ctx, content: Item<Vector>) -> Item<DVec2> {
|
||||
}
|
||||
|
||||
/// Type-asserts a value to be vector data.
|
||||
#[node_macro::node(category("Vector"), name("As Vector"), path(core_types::vector))]
|
||||
#[node_macro::node(category("Type Assertion"), path(core_types::vector))]
|
||||
fn as_vector(_: impl Ctx, value: Item<Vector>) -> Item<Vector> {
|
||||
value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user