| 1815 | } |
| 1816 | |
| 1817 | void |
| 1818 | InspectorNode::setActiveInputAndRefresh(int inputNb, |
| 1819 | bool isASide) |
| 1820 | { |
| 1821 | assert( QThread::currentThread() == qApp->thread() ); |
| 1822 | |
| 1823 | int maxInputs = getNInputs(); |
| 1824 | if ( ( inputNb > (maxInputs - 1) ) || (inputNb < 0) || ( !getInput(inputNb) ) ) { |
| 1825 | return; |
| 1826 | } |
| 1827 | |
| 1828 | bool creatingNodeTree = getApp()->isCreatingNodeTree(); |
| 1829 | if (!creatingNodeTree) { |
| 1830 | ///Recompute the hash |
| 1831 | computeHash(); |
| 1832 | } |
| 1833 | |
| 1834 | Q_EMIT inputChanged(inputNb); |
| 1835 | onInputChanged(inputNb, isASide); |
| 1836 | |
| 1837 | runInputChangedCallback(inputNb); |
| 1838 | |
| 1839 | |
| 1840 | if ( isOutputNode() ) { |
| 1841 | OutputEffectInstance* oei = dynamic_cast<OutputEffectInstance*>( getEffectInstance().get() ); |
| 1842 | assert(oei); |
| 1843 | if (oei) { |
| 1844 | oei->renderCurrentFrame(true); |
| 1845 | } |
| 1846 | } |
| 1847 | } |
| 1848 | |
| 1849 | void |
| 1850 | InspectorNode::refreshActiveInputs(int inputNbChanged, |
no test coverage detected