(tree_name: &str)
| 521 | } |
| 522 | |
| 523 | fn default_panimtree(tree_name: &str) -> String { |
| 524 | r#"[AnimationTree] |
| 525 | name = "__TREE_NAME__" |
| 526 | [/AnimationTree] |
| 527 | |
| 528 | [AnimationSlots] |
| 529 | Idle |
| 530 | Run |
| 531 | [/AnimationSlots] |
| 532 | |
| 533 | [MoveBlend] |
| 534 | [Blend] |
| 535 | inputs = [@Idle, @Run] |
| 536 | weights = [1.0, 0.0] |
| 537 | [/Blend] |
| 538 | [/MoveBlend] |
| 539 | |
| 540 | [Output] |
| 541 | input = @MoveBlend |
| 542 | [/Output] |
| 543 | "# |
| 544 | .replace("__TREE_NAME__", tree_name) |
| 545 | } |
| 546 | |
| 547 | pub(crate) fn new_animation_command(args: &[String], cwd: &Path) -> Result<(), String> { |
| 548 | let Some(raw_name) = parse_flag_value(args, "--name") else { |
no outgoing calls
no test coverage detected