made all keyframes editable and undoable
This commit is contained in:
@@ -128,14 +128,14 @@ void TransformEffect::process_gl(long frame, QOpenGLShaderProgram&, GLTextureCoo
|
||||
// anchor point
|
||||
int anchor_x_offset = (anchor_x_box->get_double_value(frame)-default_anchor_x);
|
||||
int anchor_y_offset = (anchor_y_box->get_double_value(frame)-default_anchor_y);
|
||||
coords.vertexTopLeftX += anchor_x_offset;
|
||||
coords.vertexTopRightX += anchor_x_offset;
|
||||
coords.vertexBottomLeftX += anchor_x_offset;
|
||||
coords.vertexBottomRightX += anchor_x_offset;
|
||||
coords.vertexTopLeftY += anchor_y_offset;
|
||||
coords.vertexTopRightY += anchor_y_offset;
|
||||
coords.vertexBottomLeftY += anchor_y_offset;
|
||||
coords.vertexBottomRightY += anchor_y_offset;
|
||||
coords.vertexTopLeftX -= anchor_x_offset;
|
||||
coords.vertexTopRightX -= anchor_x_offset;
|
||||
coords.vertexBottomLeftX -= anchor_x_offset;
|
||||
coords.vertexBottomRightX -= anchor_x_offset;
|
||||
coords.vertexTopLeftY -= anchor_y_offset;
|
||||
coords.vertexTopRightY -= anchor_y_offset;
|
||||
coords.vertexBottomLeftY -= anchor_y_offset;
|
||||
coords.vertexBottomRightY -= anchor_y_offset;
|
||||
|
||||
// rotation
|
||||
glRotatef(rotation->get_double_value(frame), 0, 0, 1);
|
||||
|
||||
Reference in New Issue
Block a user