MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / SortMultiBlend1D

Function SortMultiBlend1D

Source/Engine/Animations/Graph/AnimGraph.Base.cpp:126–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool SortMultiBlend1D(const ANIM_GRAPH_MULTI_BLEND_INDEX& a, const ANIM_GRAPH_MULTI_BLEND_INDEX& b, AnimGraphNode* n)
127{
128 // Sort items by X location from the lowest to the highest
129 const auto aX = a == ANIM_GRAPH_MULTI_BLEND_INVALID ? MAX_float : n->Values[4 + a * 2].AsFloat4().X;
130 const auto bX = b == ANIM_GRAPH_MULTI_BLEND_INVALID ? MAX_float : n->Values[4 + b * 2].AsFloat4().X;
131 return aX < bX;
132}
133
134#define ADD_BUCKET(initializer) \
135 BucketsCountSelf++; \

Callers

nothing calls this directly

Calls 1

AsFloat4Method · 0.80

Tested by

no test coverage detected