Skip to content

Commit

Permalink
GMX Physics Shape Points
Browse files Browse the repository at this point in the history
Read them as doubles instead of integers since GMSv1.4 doesn't care.
  • Loading branch information
RobertBColton committed Feb 22, 2021
1 parent 8512e27 commit 9345ae8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions org/lateralgm/file/GMXFileReader.java
Expand Up @@ -1204,8 +1204,8 @@ public boolean invoke()
for (int p = 0; p < pointNodes.getLength(); p++)
{
String[] coords = pointNodes.item(p).getTextContent().split(","); //$NON-NLS-1$
obj.shapePoints.add(new ShapePoint(Integer.parseInt(coords[0]),
Integer.parseInt(coords[1])));
obj.shapePoints.add(new ShapePoint(Double.parseDouble(coords[0]),
Double.parseDouble(coords[1])));
}

ResNode rnode = new ResNode(obj.getName(),ResNode.STATUS_SECONDARY,GmObject.class,obj.reference);
Expand Down
2 changes: 1 addition & 1 deletion org/lateralgm/main/LGM.java
Expand Up @@ -131,7 +131,7 @@

public final class LGM
{
public static final String version = "1.8.224"; //$NON-NLS-1$
public static final String version = "1.8.225"; //$NON-NLS-1$

// TODO: This list holds the class loader for any loaded plugins which should be
// cleaned up and closed when the application closes.
Expand Down

0 comments on commit 9345ae8

Please sign in to comment.