Skip to content

Commit 610bf9e

Browse files
committed
updated the plugin.
1 parent 23eaac9 commit 610bf9e

10 files changed

Lines changed: 10 additions & 5 deletions

File tree

Binary file not shown.
Binary file not shown.

embedded-plugins/ss-editor-tree-generator/libs/SimArboreal-1.1.0.jar renamed to embedded-plugins/ss-editor-tree-generator/libs/SimArboreal-1.2.0.jar

58 KB
Binary file not shown.
Binary file not shown.

src/main/java/com/ss/editor/ui/component/asset/tree/ResourceTree.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -784,14 +784,14 @@ private void processKey(@NotNull final KeyEvent event) {
784784
final boolean controlDown = event.isControlDown();
785785

786786
if (!currentAsset.equals(firstElement.getFile())) {
787-
if (controlDown && keyCode == KeyCode.C && actionTester.test(CopyFileAction.class) && selectedAsset &&
787+
if (controlDown && keyCode == KeyCode.C && actionTester.test(CopyFileAction.class) && !selectedAsset &&
788788
(onlyFiles || selectedElements.size() == 1)) {
789789

790790
final CopyFileAction action = new CopyFileAction(selectedElements);
791791
final EventHandler<ActionEvent> onAction = action.getOnAction();
792792
onAction.handle(null);
793793

794-
} else if (controlDown && keyCode == KeyCode.X && actionTester.test(CutFileAction.class) && selectedAsset &&
794+
} else if (controlDown && keyCode == KeyCode.X && actionTester.test(CutFileAction.class) && !selectedAsset &&
795795
(onlyFiles || selectedElements.size() == 1)) {
796796

797797
final CutFileAction action = new CutFileAction(selectedElements);

src/main/java/com/ss/editor/ui/component/editor/state/impl/EditorMaterialEditorState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public class EditorMaterialEditorState extends Editor3DWithEditorToolEditorState
1616
/**
1717
* The constant serialVersionUID.
1818
*/
19-
public static final long serialVersionUID = 5;
19+
public static final long serialVersionUID = 6;
2020

2121
@NotNull
2222
private static transient final RenderQueue.Bucket[] BUCKETS = RenderQueue.Bucket.values();

src/main/java/com/ss/editor/ui/component/editor/state/impl/EditorModelEditorState.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class EditorModelEditorState extends BaseEditorSceneEditorState {
1212
/**
1313
* The constant serialVersionUID.
1414
*/
15-
public static final long serialVersionUID = 4;
15+
public static final long serialVersionUID = 5;
1616

1717
/**
1818
* The sky type.

src/main/java/com/ss/editor/ui/component/editor/state/impl/VoidEditorState.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
*/
1313
public final class VoidEditorState implements EditorState {
1414

15+
/**
16+
* The constant serialVersionUID.
17+
*/
18+
public static final long serialVersionUID = 1;
19+
1520
private VoidEditorState() {
1621
throw new RuntimeException();
1722
}

src/main/java/com/ss/editor/ui/dialog/folder/OpenExternalFolderEditorDialog.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ protected void createContent(@NotNull final VBox root) {
7777
resourceTree = new ResourceTree(this::processOpen, false);
7878
resourceTree.prefHeightProperty().bind(heightProperty());
7979
resourceTree.prefWidthProperty().bind(widthProperty());
80+
resourceTree.setActionTester(type -> false);
8081
resourceTree.setLazyMode(true);
8182
resourceTree.setOnlyFolders(true);
8283
resourceTree.setShowRoot(false);

src/main/java/com/ss/editor/util/EditorUtil.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,6 @@ public static <T> T deserialize(@NotNull final byte[] bytes) {
579579
try (final ObjectInputStream in = new SSObjectInputStream(bin)) {
580580
return unsafeCast(in.readObject());
581581
} catch (final ClassNotFoundException | IOException e) {
582-
LOGGER.warning(e);
583582
throw new RuntimeException(e);
584583
}
585584
}

0 commit comments

Comments
 (0)