Skip to content

Commit

Permalink
all: cannot get PrametricParam to work in Nuke 11.1 either
Browse files Browse the repository at this point in the history
it crashes calling strlen() on a NULL pointer in Nofx::NofxParametricParamInstance::make_knob(DD::Image::Knob_Closure&)
  • Loading branch information
devernay committed Apr 30, 2018
1 parent 4885f40 commit 5eb5904
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions ColorCorrect/ColorCorrect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ ColorCorrectPluginFactory::describeInContext(ImageEffectDescriptor &desc,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric
if (supportsParametricParameter) {
ParametricParamDescriptor* param = desc.defineParametricParam(kParamColorCorrectToneRanges);
assert(param);
Expand Down Expand Up @@ -1568,7 +1568,7 @@ ColorCorrectPluginFactory::createInstance(OfxImageEffectHandle handle,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric

return new ColorCorrectPlugin(handle, supportsParametricParameter);
}
Expand Down
2 changes: 1 addition & 1 deletion ColorLookup/ColorLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ ColorLookupPluginFactory::describeInContext(ImageEffectDescriptor &desc,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric

if (!supportsParametricParameter) {
throwHostMissingSuiteException(kOfxParametricParameterSuite);
Expand Down
4 changes: 2 additions & 2 deletions HueCorrect/HueCorrect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ HueCorrectPluginFactory::describeInContext(ImageEffectDescriptor &desc,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric

if (!supportsParametricParameter) {
throwHostMissingSuiteException(kOfxParametricParameterSuite);
Expand Down Expand Up @@ -1445,7 +1445,7 @@ HueKeyerPluginFactory::describeInContext(ImageEffectDescriptor &desc,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric

if (!supportsParametricParameter) {
throwHostMissingSuiteException(kOfxParametricParameterSuite);
Expand Down
4 changes: 2 additions & 2 deletions Retime/Retime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ RetimePluginFactory::describeInContext(ImageEffectDescriptor &desc,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric
if (supportsParametricParameter) {
PageParamDescriptor* page = desc.definePageParam(kPageTimeWarp);
if (page) {
Expand Down Expand Up @@ -783,7 +783,7 @@ RetimePluginFactory::createInstance(OfxImageEffectHandle handle,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric

return new RetimePlugin(handle, supportsParametricParameter);
}
Expand Down
4 changes: 2 additions & 2 deletions TimeDissolve/TimeDissolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ TimeDissolvePluginFactory::describeInContext(ImageEffectDescriptor &desc,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric
if (supportsParametricParameter) {
ParametricParamDescriptor* param = desc.defineParametricParam(kParamCurve);
assert(param);
Expand Down Expand Up @@ -595,7 +595,7 @@ TimeDissolvePluginFactory::createInstance(OfxImageEffectHandle handle,
const ImageEffectHostDescription &gHostDescription = *getImageEffectHostDescription();
const bool supportsParametricParameter = ( gHostDescription.supportsParametricParameter &&
!(gHostDescription.hostName == "uk.co.thefoundry.nuke" &&
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 10) ); // Nuke 8-10 are known to *not* support Parametric
8 <= gHostDescription.versionMajor && gHostDescription.versionMajor <= 11) ); // Nuke 8-11.1 are known to *not* support Parametric

return new TimeDissolvePlugin(handle, supportsParametricParameter);
}
Expand Down

0 comments on commit 5eb5904

Please sign in to comment.