diff --git a/src/sporemodder/ProjectManager.java b/src/sporemodder/ProjectManager.java index 2e40336..67bb252 100644 --- a/src/sporemodder/ProjectManager.java +++ b/src/sporemodder/ProjectManager.java @@ -1324,6 +1324,7 @@ public void unpackPresets(List presets) { // Create the project or override the existing one final Project project = getOrCreateProject(preset.getName()); project.setReadOnly(true); + project.saveSettings(); // The project is passed to set the 'packageSignature' setting, but we don't want that in presets final DBPFUnpackingTask task = new DBPFUnpackingTask(files.values(), project.getFolder(), project, converters); diff --git a/src/sporemodder/file/rw4/RWBlendShapeBuffer.java b/src/sporemodder/file/rw4/RWBlendShapeBuffer.java index 150b1a1..6bc8e2e 100644 --- a/src/sporemodder/file/rw4/RWBlendShapeBuffer.java +++ b/src/sporemodder/file/rw4/RWBlendShapeBuffer.java @@ -46,14 +46,12 @@ public void read(StreamReader stream) throws IOException { for (int i = 0; i < data.length; ++i) { offsets[i] = stream.readLEUInt(); if (offsets[i] != 0) endOffsets.add(offsets[i]); - if (offsets[i] != 0) System.out.println(offsets[i] + baseOffset); } endOffsets.add((long) sectionInfo.size); shapeCount = stream.readLEInt(); vertexCount = stream.readLEInt(); unk = stream.readLEInt(); boneIndicesCount = stream.readLEInt(); - System.out.println("vertex count: " + vertexCount); Iterator it = endOffsets.iterator(); it.next(); diff --git a/src/sporemodder/file/spui/components/DirectImage.java b/src/sporemodder/file/spui/components/DirectImage.java index b9315b5..5df3981 100644 --- a/src/sporemodder/file/spui/components/DirectImage.java +++ b/src/sporemodder/file/spui/components/DirectImage.java @@ -98,6 +98,9 @@ public float getHeight() { @Override public void drawImage(GraphicsContext graphics, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh, Color shadeColor) { + if (sx < 0) sx = 0; + if (sy < 0) sy = 0; + if (image == null) { graphics.setFill(shadeColor); graphics.fillRect(dx, dy, dw, dh);