| 628 | } |
| 629 | |
| 630 | void |
| 631 | ProjectGui::setPickersColor(double r, |
| 632 | double g, |
| 633 | double b, |
| 634 | double a) |
| 635 | { |
| 636 | if ( _colorPickersEnabled.empty() ) { |
| 637 | return; |
| 638 | } |
| 639 | KnobColorPtr first = _colorPickersEnabled.front(); |
| 640 | |
| 641 | for (U32 i = 0; i < _colorPickersEnabled.size(); ++i) { |
| 642 | if ( !_colorPickersEnabled[i]->areAllDimensionsEnabled() ) { |
| 643 | _colorPickersEnabled[i]->activateAllDimensions(); |
| 644 | } |
| 645 | if (_colorPickersEnabled[i]->getDimension() == 3) { |
| 646 | _colorPickersEnabled[i]->setValues(r, g, b, ViewSpec::all(), eValueChangedReasonNatronGuiEdited); |
| 647 | } else { |
| 648 | _colorPickersEnabled[i]->setValues(r, g, b, a, ViewSpec::all(), eValueChangedReasonNatronGuiEdited); |
| 649 | } |
| 650 | } |
| 651 | } |
| 652 | |
| 653 | NATRON_NAMESPACE_EXIT |
| 654 |
no test coverage detected