make sure effect chains are initialized properly#1241
make sure effect chains are initialized properly#1241daschuer merged 1 commit intomixxxdj:masterfrom
Conversation
if effects.xml is a valid XML file but does not contain enough <EffectChain> elements
|
Thank you for this quick band aid. It is still possible to create too many effects. Did you consider decoupling slot creating and effect loading? |
|
Putting more than 4 Decoupling EffectChainSlot creation and loading state from XML would be a bit complicated. This works as is. |
I have not tested it yet, but I assume that there are additional effects are added to new effect slots created along with there Control Objects. We should avoid it to not give the impression that the number of effects slots can be set by the XML file. If we need a dynamic number of effect slots, we should allow the skins to set them up not the effect.xml which is IMHO only responsible for the content of the effect slots. |
It is OK to me to keep the current situation. To clarify, do you agree that it should be decoupled finally. |
I don't think it matters much either way. If you want to open a bug for it, go ahead. |
|
Thank you! LGTM The bug is here: |
if effects.xml is a valid XML file but does not contain enough elements like this. That should never happen, but in case it does, this change will catch it.