Add kNodeAnimateInhibit flag to PSystem node and sub node to allow PSystem to be part of an animated model
Support string table for ParticleSystemObject settings
You have overriden this line
stageSystem->SetNodeFlags(kNodeCloneInhibit | kNodeNonpersistent | (GetNodeFlags() & kNodeDisabled ? kNodeDisabled : 0) ); incorrectly.
Without kNodeCloneInhibit it won't work in some modes. (in references and I think it will crash with registered Models too)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
patch file for GenericParticleSystem.*
You have overriden this line
stageSystem->SetNodeFlags(kNodeCloneInhibit | kNodeNonpersistent | (GetNodeFlags() & kNodeDisabled ? kNodeDisabled : 0) ); incorrectly.
Without kNodeCloneInhibit it won't work in some modes. (in references and I think it will crash with registered Models too)
It is not exactly overriden since the original line is always here
// your original line
stageSystem->SetNodeFlags(kNodeCloneInhibit | kNodeNonpersistent | (GetNodeFlags() & kNodeDisabled ? kNodeDisabled : 0) );
// added line
stageSystem->SetNodeFlags(stageSystem->GetNodeFlags() | C4::kNodeAnimateInhibit);
I use GetNodeFlags() to keep previously set flags and add C4::kNodeAnimateInhibit
which is the same things than
stageSystem->SetNodeFlags(kNodeCloneInhibit | kNodeNonpersistent | (GetNodeFlags() & kNodeDisabled ? kNodeDisabled : 0) | C4::kNodeAnimateInhibit);
... but more merge-friendy