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

Method refreshState

Gui/Edge.cpp:354–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354void
355Edge::refreshState(bool hovered)
356{
357 NodeGuiPtr dst = _imp->dest.lock();
358 EffectInstancePtr effect = dst ? dst->getNode()->getEffectInstance() : EffectInstancePtr();
359
360 if (effect) {
361 ///Refresh properties
362 _imp->isRotoMask = effect->isInputRotoBrush(_imp->inputNb);
363 _imp->isMask = effect->isInputMask(_imp->inputNb);
364 _imp->optional = _imp->isMask || effect->isInputOptional(_imp->inputNb);
365 if (_imp->isMask) {
366 _imp->paintWithDash = true;
367 }
368 bool visible = computeVisibility(hovered);
369 if (isVisible() != visible) {
370 setVisible(visible);
371 }
372 }
373}
374
375void
376Edge::setOptional(bool optional)

Callers

nothing calls this directly

Calls 7

isVisibleFunction · 0.85
getEffectInstanceMethod · 0.80
isInputRotoBrushMethod · 0.80
lockMethod · 0.45
getNodeMethod · 0.45
isInputMaskMethod · 0.45
isInputOptionalMethod · 0.45

Tested by

no test coverage detected