@@ -29,7 +29,7 @@ namespace rift::Nodes
29
29
EditorContext& GetEditorContext ()
30
30
{
31
31
// No editor context was set! Did you forget to call Nodes::CreateContext()?
32
- Check (gNodes ->EditorCtx != nullptr );
32
+ P_Check (gNodes ->EditorCtx != nullptr );
33
33
return *gNodes ->EditorCtx ;
34
34
}
35
35
@@ -58,7 +58,7 @@ namespace rift::Nodes
58
58
// Calculates the closest point along each bezier curve segment.
59
59
v2 GetClosestPointOnCubicBezier (const i32 numSegments, const v2& p, const CubicBezier& cb)
60
60
{
61
- Ensure (numSegments > 0 );
61
+ P_Ensure (numSegments > 0 );
62
62
v2 pLast = cb.p0 ;
63
63
v2 pClosest;
64
64
float pClosestDist = FLT_MAX;
@@ -2545,7 +2545,7 @@ namespace rift::Nodes
2545
2545
2546
2546
bool IsPinActive ()
2547
2547
{
2548
- Check (HasFlag (gNodes ->currentScope , Scope::Node));
2548
+ P_Check (HasFlag (gNodes ->currentScope , Scope::Node));
2549
2549
2550
2550
if (!gNodes ->activePin )
2551
2551
{
@@ -2557,7 +2557,7 @@ namespace rift::Nodes
2557
2557
2558
2558
bool IsAnyPinActive (Id* const pinId)
2559
2559
{
2560
- Check (!HasAnyFlags (gNodes ->currentScope , (Scope::Node | Scope::Pin)));
2560
+ P_Check (!HasAnyFlags (gNodes ->currentScope , (Scope::Node | Scope::Pin)));
2561
2561
2562
2562
if (!gNodes ->activePin )
2563
2563
{
@@ -2599,8 +2599,8 @@ namespace rift::Nodes
2599
2599
bool IsLinkDropped (Id* outputId, Id* inputId, bool includingDetachedLinks)
2600
2600
{
2601
2601
// Call this function after EndNodeEditor()!
2602
- Check (gNodes ->currentScope != Scope::None);
2603
- Check (outputId != nullptr );
2602
+ P_Check (gNodes ->currentScope != Scope::None);
2603
+ P_Check (outputId != nullptr );
2604
2604
2605
2605
const EditorContext& editor = GetEditorContext ();
2606
2606
@@ -2628,7 +2628,7 @@ namespace rift::Nodes
2628
2628
2629
2629
bool IsLinkCreated (Id& outputPinId, Id& inputPinId, bool * createdFromSnap)
2630
2630
{
2631
- Check (gNodes ->currentScope == Scope::None);
2631
+ P_Check (gNodes ->currentScope == Scope::None);
2632
2632
2633
2633
if ((gNodes ->UIState & UIState_LinkCreated) != 0 )
2634
2634
{
@@ -2654,7 +2654,7 @@ namespace rift::Nodes
2654
2654
bool IsLinkCreated (ast::Id& outputNodeId, Id& outputPinId, ast::Id& inputNodeId, Id& inputPinId,
2655
2655
bool * createdFromSnap)
2656
2656
{
2657
- Check (gNodes ->currentScope == Scope::None);
2657
+ P_Check (gNodes ->currentScope == Scope::None);
2658
2658
2659
2659
if ((gNodes ->UIState & UIState_LinkCreated) != 0 )
2660
2660
{
@@ -2681,7 +2681,7 @@ namespace rift::Nodes
2681
2681
2682
2682
bool IsLinkDestroyed (Id& linkId)
2683
2683
{
2684
- Check (gNodes ->currentScope == Scope::None);
2684
+ P_Check (gNodes ->currentScope == Scope::None);
2685
2685
2686
2686
const bool linkDestroyed = gNodes ->DeletedLinkIdx .IsValid ();
2687
2687
if (linkDestroyed)
0 commit comments