MCPcopy Create free account
hub / github.com/clementgallet/libTAS / clearUniqueInput

Method clearUniqueInput

src/program/ui/InputEditorModel.cpp:1028–1043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1026}
1027
1028void InputEditorModel::clearUniqueInput(int column)
1029{
1030 if (column < COLUMN_SPECIAL_SIZE)
1031 return;
1032
1033 if (column == columnCount() - 1)
1034 return;
1035
1036 SingleInput si = movie->editor->input_set[column-COLUMN_SPECIAL_SIZE];
1037
1038 /* Don't clear locked input */
1039 if (movie->editor->locked_inputs.find(si) != movie->editor->locked_inputs.end())
1040 return;
1041
1042 movie->inputs->paintInput(si, 0, context->framecount, movie->inputs->nbFrames()-1);
1043}
1044
1045bool InputEditorModel::removeUniqueInput(int column)
1046{

Callers 1

clearInputColumnMethod · 0.80

Calls 4

paintInputMethod · 0.80
nbFramesMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected