MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / AddModule

Method AddModule

Engine/Editor/Source/Particles/ParticleEmitterStack.cpp:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 // Turning a stage off turns off every module under it, up to the next stage.
33 bool bStageEnabled = true;
34 for (const TStrongObjectPtr<CParticleModule>& Module : GridModules)
35 {
36 if (const CParticleModule_SimulationStage* Stage = Cast<CParticleModule_SimulationStage>(Module.Get()))
37 {
38 bStageEnabled = Stage->bEnabled;
39 if (bStageEnabled)
40 {
41 Compiler.BeginGridStage(Stage->Iterations);
42 }
43 }
44 else if (Module.IsValid() && Module->bEnabled && bStageEnabled)
45 {
46 Module->Generate(Compiler, ModuleIndex);
47 }
48 ++ModuleIndex;
49 }
50

Callers 1

DrawAddModulePopupMethod · 0.80

Calls 3

IsChildOfMethod · 0.45
push_backMethod · 0.45
GetStageMethod · 0.45

Tested by

no test coverage detected