Skip to content

Commit

Permalink
Fix a bug with Fixed Paste and Paths
Browse files Browse the repository at this point in the history
Turns out, using Fixed Paste mode on a path wouldn't actually paste the control point positions... don't know how I missed that.
  • Loading branch information
SuperHackio committed May 30, 2024
1 parent ebfabe3 commit fad0326
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/whitehole/editor/GalaxyEditorForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -2606,6 +2606,10 @@ private void pastePathPoint(PastePathData.PastePathPointData obj, PathObj owner,
{
if (objPosition == null)
objPosition = obj.getVector("pnt0");
if (point1 == null)
point1 = obj.getVector("pnt1");
if (point2 == null)
point2 = obj.getVector("pnt2");

//We need to create the point manually again
PathPointObj thepoint = new PathPointObj(owner, objPosition);
Expand Down Expand Up @@ -4703,7 +4707,7 @@ else if (keyCode == KeyEvent.VK_A && e.isShiftDown()) {
popupAddItems.setVisible(true);
}
// Copy/Paste
else if (e.isControlDown() && (keyMask & 0x3F) == 0)
else if ((keyCode == KeyEvent.VK_C || keyCode == KeyEvent.VK_V) && e.isControlDown() && (keyMask & 0x3F) == 0)
{
// Copy -- Ctrl+C
if (keyCode == KeyEvent.VK_C) {
Expand Down

0 comments on commit fad0326

Please sign in to comment.