I am updating an R20 plugin to work with R21.
The CommandData
has changed, and requires an additional argument in most of its methods. Fine!
Plugin is updated and is available in the "Extensions" menu of R21.
However, in R20 it was available as an entry with a cog wheel behind it, since I had registered the CommandData
as:
RegisterCommandPlugin(PLUGINID, GeLoadString(IDS_PLUGINNAME), PLUGINFLAG_COMMAND_OPTION_DIALOG, AutoBitmap("plugin.png"_s), "pluginname"_s, NewObjClear(PluginCommand));
I first converted the R20 code to R21 on Windows, and ran Cinema4D in debug. I didn't notice the cogwheel missing on Windows, it still might be the case, I just have currently no possibility to check it. However, now on macOS it is obviously missing.
Worst is that I seem to be unable to access CommandData::Execute()
as selecting the plugin entry in the "Extensions" always seems to bring up the option dialog window, thus actually performing CommandData::ExecuteOptionID()
.
When I assign a shortcut to the plugin without the "option" checked, then hitting the shortcut will perform the CommandData::Execute()
.
This is on High Sierra, with a freshly installed R21.026 (this exact morning).
Will need to cross check what happens on Windows 10 ...