MCPcopy Create free account
hub / github.com/NatronGitHub/openfx-misc / createInstance

Method createInstance

Switch/Switch.cpp:530–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528} // SwitchPluginFactory::describeInContext
529
530ImageEffect*
531SwitchPluginFactory::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
542static SwitchPluginFactory p(kPluginIdentifier, kPluginVersionMajor, kPluginVersionMinor);
543mRegisterPluginFactoryInstance(p)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected