AngryAnt / Behave-release

The Behave project is a system for designing, integrating and running behaviour logic using Behaviour Trees for simulated characters in unity projects. NOTE: This project relates to Behave 1. For Behave 2 support and information, please use the AngryAnt community at http://community.angryant.com

Home Page:http://angryant.com/behave

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Collection duplicate does not update tree references

ricardojmendez opened this issue · comments

Suppose you have the following collection:

Col-A

  • Col-A.Tree 1
  • Col-A.Tree 2
  • Col-A.Tree 3 (references Col-A.Tree 1 as a subtree)

If you duplicate it into Col-B, you'll end up with

Col-B

  • Col-B.Tree 1
  • Col-B.Tree 2
  • Col-B.Tree 3 (references Col-A.Tree 1 as a subtree)

That is, if any of those trees contained a reference to another one, the reference will not point to the duplicated tree in Col-B, but to the one in Col-A.

Incidentally, the Behave compiler is beachballing Unity when attempting to compile a library with a duplicated collection, which might be related to this issue.

The beachballing is very likely related to this, yea. Behave does not currently support cyclic references.

I'll look into the issue. Thanks for reporting it.

Actually, I just noticed that I bollocksed up the markup - those were meant to be bullet points There are not circular references. It's not that T1 references T2 which references T3 which then references T1.

Fixed in an upcoming release.