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

Method transformSelectedKeys

Gui/DopeSheet.cpp:930–941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

928}
929
930void
931DopeSheet::transformSelectedKeys(const Transform::Matrix3x3& transform)
932{
933 if ( _imp->selectionModel->isEmpty() ) {
934 return;
935 }
936 DopeSheetKeyPtrList selectedKeyframes;
937 std::vector<DSNodePtr> selectedNodes;
938 _imp->selectionModel->getCurrentSelection(&selectedKeyframes, &selectedNodes);
939
940 _imp->pushUndoCommand( new DSTransformKeysCommand(selectedKeyframes, transform, _imp->editor) );
941}
942
943void
944DopeSheet::emit_modelChanged()

Callers 1

onMouseLeftButtonDragMethod · 0.80

Calls 3

getCurrentSelectionMethod · 0.80
isEmptyMethod · 0.45
pushUndoCommandMethod · 0.45

Tested by

no test coverage detected