Feature request: Append when pasting task list in node that already has tasks

Forums 💬 NodeCanvas 🗨️ General Discussion Feature request: Append when pasting task list in node that already has tasks

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13536
    timv
    Participant

      If you copy a task list (condition or action) and then try to paste it into a node that already has some task, nothing happens.
      It would be very nice if these tasks were just appended to the end of the list.

      #13539
      Gavalakis
      Keymaster

        Hello again,

        Nice suggestion and easy to change actually if I understood the goal correctly.
        Please try changing ActionList.AddAction code at the start to the following code and let me know if the reasult behaviour is what you meant:

        It’s exactly the same change respectively in ConditionList.AddCondition by the way.

        Thanks 😉

        #13538
        timv
        Participant

          Yes, that’s what I meant. Thanks, I’ll try that.

          I guess you’ll be removing these warnings:
          Debug.LogWarning(“Adding an ActionList within another ActionList is not allowed for clarity”);
          Debug.LogWarning(“Adding a ConditionList within another ConditionList is not allowed for clarity”);

          #13537
          Gavalakis
          Keymaster

            Yes,
            Those logs will no longer be needed of course 🙂

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.