Use exact value comparison in caching related functions
(cherry picked from commit 9d7c6b26422e127719836944d8d473910190e7d4)
This commit is contained in:
@@ -20,7 +20,7 @@ namespace
|
||||
template<typename T>
|
||||
ShaderGraphNode<>* AddValueNode(MaterialLayer* layer, const float& value, const float& defaultValue)
|
||||
{
|
||||
if (Math::NearEqual(value, defaultValue))
|
||||
if (value == defaultValue)
|
||||
return nullptr;
|
||||
auto& node = layer->Graph.Nodes.AddOne();
|
||||
node.ID = layer->Graph.Nodes.Count();
|
||||
|
||||
Reference in New Issue
Block a user