MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / setPyPlugEdited

Method setPyPlugEdited

Engine/Node.cpp:4645–4665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4643}
4644
4645void
4646Node::setPyPlugEdited(bool edited)
4647{
4648 {
4649 QMutexLocker k(&_imp->pyPluginInfoMutex);
4650
4651 _imp->pyPlugInfo.isPyPlug = !edited;
4652 }
4653 NodeGroup* isGroup = dynamic_cast<NodeGroup*>(_imp->effect.get());
4654 if (isGroup) {
4655 KnobButtonPtr convertToGroupButton = isGroup->getConvertToGroupButton();
4656 KnobButtonPtr exportPyPlugButton = isGroup->getExportAsPyPlugButton();
4657 if (convertToGroupButton) {
4658 convertToGroupButton->setSecret(edited);
4659 }
4660 if (exportPyPlugButton) {
4661 exportPyPlugButton->setSecret(!edited);
4662 }
4663
4664 }
4665}
4666
4667bool
4668Node::isPyPlug() const

Callers 3

knobChangedMethod · 0.80
mousePressEventMethod · 0.80

Calls 4

getMethod · 0.45
setSecretMethod · 0.45

Tested by

no test coverage detected