Made Keyframes in GuiObjectManager draggable
This commit is contained in:
@@ -639,6 +639,9 @@ public class GuiObjectManager extends GuiScreen {
|
|||||||
if(dragging) {
|
if(dragging) {
|
||||||
int time = (int) getTimeAt(mouseX, mouseY);
|
int time = (int) getTimeAt(mouseX, mouseY);
|
||||||
if(time != -1) {
|
if(time != -1) {
|
||||||
|
if(selectedKeyframe != null) {
|
||||||
|
selectedKeyframe.setRealTimestamp(time);
|
||||||
|
}
|
||||||
cursorPosition = time;
|
cursorPosition = time;
|
||||||
updateValuesForTransformation(getTransformations().getTransformationForTimestamp(cursorPosition));
|
updateValuesForTransformation(getTransformations().getTransformationForTimestamp(cursorPosition));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user