| 421 | } |
| 422 | |
| 423 | bool ScriptModulationMatrix::updateIntensity(String source, String target, float intensityValue) |
| 424 | { |
| 425 | if (um == nullptr) |
| 426 | { |
| 427 | return updateIntensityInternal(source, target, intensityValue); |
| 428 | } |
| 429 | else |
| 430 | { |
| 431 | auto oldValue = getIntensitySliderData(source, target)[scriptnode::PropertyIds::Value]; |
| 432 | var newValue(intensityValue); |
| 433 | |
| 434 | return um->perform(new MatrixUndoAction(this, MatrixUndoAction::ActionType::Intensity, oldValue, newValue, source, target));; |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | bool ScriptModulationMatrix::updateValueMode(String source, String target, String valueMode) |
| 439 | { |
no test coverage detected