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

Method onKnobsRecreated

Gui/DockablePanel.cpp:567–584  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567void
568DockablePanel::onKnobsRecreated()
569{
570 NodeSettingsPanel* isNodePanel = dynamic_cast<NodeSettingsPanel*>(this);
571
572 // Refresh the curve editor with potential new animated knobs
573 if (isNodePanel) {
574 Gui* gui = getGui();
575 if (gui) {
576 NodeGuiPtr node = isNodePanel->getNode();
577 gui->getCurveEditor()->removeNode( node.get() );
578 gui->getCurveEditor()->addNode(node);
579
580 gui->removeNodeGuiFromDopeSheetEditor(node);
581 gui->addNodeGuiToDopeSheetEditor(node);
582 }
583 }
584}
585
586void
587DockablePanel::onPageIndexChanged(int index)

Callers

nothing calls this directly

Calls 8

getGuiFunction · 0.85
getCurveEditorMethod · 0.80
getNodeMethod · 0.45
removeNodeMethod · 0.45
getMethod · 0.45
addNodeMethod · 0.45

Tested by

no test coverage detected