Skip to content

Commit

Permalink
feat(console): asset node/scene tree node->"check relation when drag …
Browse files Browse the repository at this point in the history
…drop" not not error
  • Loading branch information
yyc-git committed Feb 20, 2019
1 parent c134151 commit 10ee2c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,13 @@ module Method = {
checkNodeRelationFunc,
);

relationResult
/* relationResult
|> OptionService.handleSomeAndIgnore(relationResult =>
relationResult
|> Result.RelationResult.handleError(msg =>
ConsoleUtils.error(msg, StateEditorService.getState())
)
);
); */

isValid ?
DragGameObject(gameObject, startId, dragPosition) :
Expand Down
4 changes: 2 additions & 2 deletions src/core/utils/event/DragEventUtils.re
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let handleDrop =
checkNodeRelationFunc,
);

relationResult
/* relationResult
|> OptionService.handleSomeAndIgnore(relationResult =>
relationResult
|> Result.RelationResult.handleError(msgOpt =>
Expand All @@ -66,7 +66,7 @@ let handleDrop =
msgOpt,
)
)
);
); */

isValid ? dragDropActionFunc(id, startId) : dragLeaveAction;
};
Expand Down

0 comments on commit 10ee2c5

Please sign in to comment.