| 528 | } // SwitchPluginFactory::describeInContext |
| 529 | |
| 530 | ImageEffect* |
| 531 | SwitchPluginFactory::createInstance(OfxImageEffectHandle handle, |
| 532 | ContextEnum /*context*/) |
| 533 | { |
| 534 | //Natron >= 2.0 allows multiple inputs to be folded like the viewer node, so use this to merge |
| 535 | //more than 2 images |
| 536 | bool numerousInputs = (getImageEffectHostDescription()->isNatron && |
| 537 | getImageEffectHostDescription()->versionMajor >= 2); |
| 538 | |
| 539 | return new SwitchPlugin(handle, numerousInputs); |
| 540 | } |
| 541 | |
| 542 | static SwitchPluginFactory p(kPluginIdentifier, kPluginVersionMajor, kPluginVersionMinor); |
| 543 | mRegisterPluginFactoryInstance(p) |
nothing calls this directly
no outgoing calls
no test coverage detected