Fix using particle data in particle function for proper graph optimizer execution
This commit is contained in:
@@ -295,6 +295,7 @@ public:
|
|||||||
// Particle Emitter Function
|
// Particle Emitter Function
|
||||||
case GRAPH_NODE_MAKE_TYPE(14, 300):
|
case GRAPH_NODE_MAKE_TYPE(14, 300):
|
||||||
node->Assets[0] = Content::LoadAsync<Asset>((Guid)node->Values[0]);
|
node->Assets[0] = Content::LoadAsync<Asset>((Guid)node->Values[0]);
|
||||||
|
node->UsesParticleData = true; // TODO: analyze emitter function graph to detect if it's actually using any particle data at all (even from inputs after inline)
|
||||||
break;
|
break;
|
||||||
// Particle Index
|
// Particle Index
|
||||||
case GRAPH_NODE_MAKE_TYPE(14, 301):
|
case GRAPH_NODE_MAKE_TYPE(14, 301):
|
||||||
|
|||||||
Reference in New Issue
Block a user