Skip to content

Commit 7ed4676

Browse files
committed
Expose the secondary input for Logical nodes
1 parent 910fb54 commit 7ed4676

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • node-graph/nodes/math/src

node-graph/nodes/math/src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -646,6 +646,7 @@ fn less_than<T: std::cmp::PartialOrd<T>>(
646646
value: T,
647647
/// The number on the right-hand side of the comparison.
648648
#[implementations(f64, f32, u32)]
649+
#[expose]
649650
other_value: T,
650651
/// Uses the less-than-or-equal operation (`<=`) instead of the less-than operation (`<`).
651652
or_equal: bool,
@@ -663,6 +664,7 @@ fn greater_than<T: std::cmp::PartialOrd<T>>(
663664
value: T,
664665
/// The number on the right-hand side of the comparison.
665666
#[implementations(f64, f32, u32)]
667+
#[expose]
666668
other_value: T,
667669
/// Uses the greater-than-or-equal operation (`>=`) instead of the greater-than operation (`>`).
668670
or_equal: bool,
@@ -679,6 +681,7 @@ fn equals<T: std::cmp::PartialEq<T>>(
679681
value: T,
680682
/// The other of the two values to compare for equality.
681683
#[implementations(f64, f32, u32, DVec2, bool, &str, String)]
684+
#[expose]
682685
other_value: T,
683686
) -> bool {
684687
other_value == value
@@ -693,6 +696,7 @@ fn not_equals<T: std::cmp::PartialEq<T>>(
693696
value: T,
694697
/// The other of the two values to compare for inequality.
695698
#[implementations(f64, f32, u32, DVec2, bool, &str)]
699+
#[expose]
696700
other_value: T,
697701
) -> bool {
698702
other_value != value
@@ -705,6 +709,7 @@ fn logical_or(
705709
/// One of the two boolean values, either of which may be true for the node to output true.
706710
value: bool,
707711
/// The other of the two boolean values, either of which may be true for the node to output true.
712+
#[expose]
708713
other_value: bool,
709714
) -> bool {
710715
value || other_value
@@ -717,6 +722,7 @@ fn logical_and(
717722
/// One of the two boolean values, both of which must be true for the node to output true.
718723
value: bool,
719724
/// The other of the two boolean values, both of which must be true for the node to output true.
725+
#[expose]
720726
other_value: bool,
721727
) -> bool {
722728
value && other_value

0 commit comments

Comments
 (0)