MCPcopy Create free account
hub / github.com/christophhart/HISE / undo

Method undo

hi_scripting/scripting/api/ScriptModulationMatrix.cpp:1945–1969  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1943}
1944
1945bool ScriptModulationMatrix::MatrixUndoAction::undo()
1946{
1947 if (matrix == nullptr)
1948 return false;
1949
1950 switch (type)
1951 {
1952 case ActionType::Clear:
1953 case ActionType::Update:
1954 matrix->fromBase64(oldValue.toString());
1955 break;
1956 case ActionType::Add:
1957 return matrix->connectInternal(source, target, false);
1958 case ActionType::Remove:
1959 return matrix->connectInternal(source, target, true);
1960 case ActionType::Intensity:
1961 return matrix->updateIntensityInternal(source, target, oldValue);
1962 case ActionType::ValueMode:
1963 return matrix->updateValueModeInternal(source, target, oldValue);
1964 default:
1965 break;
1966 }
1967
1968 return true;
1969}
1970
1971}
1972

Callers

nothing calls this directly

Calls 5

connectInternalMethod · 0.80
fromBase64Method · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected