Skip to content

Commit

Permalink
chore: 允许Pipeline 滑动起点和终点都是自身
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed May 10, 2024
1 parent a4978e2 commit 91f8fdb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/MaaFramework/Resource/PipelineResMgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,11 +1236,11 @@ bool PipelineResMgr::parse_swipe(
LogError << "failed to parse_action_target end" << VAR(input);
return false;
}
if (output.begin.type == Action::Target::Type::Self
&& output.end.type == Action::Target::Type::Self) {
LogError << "not set swipe begin or end";
return false;
}
// if (output.begin.type == Action::Target::Type::Self
// && output.end.type == Action::Target::Type::Self) {
// LogError << "not set swipe begin or end";
// return false;
// }

if (!get_and_check_value(input, "duration", output.duration, default_value.duration)) {
LogError << "failed to get_and_check_value duration" << VAR(input);
Expand Down Expand Up @@ -1432,4 +1432,4 @@ bool PipelineResMgr::parse_action_target(
return true;
}

MAA_RES_NS_END
MAA_RES_NS_END

0 comments on commit 91f8fdb

Please sign in to comment.