Editor crashes when using undefined Enum in Behavior Tree Decorator
I just ran into a bug which causes the Editor to crash instead of giving an error message.
This is all done in BP. Let's say I create a custom enum for saving some BotData. Then I create a Blackboard type. Inside this I create a key which is of the type Enum, however I fail to specify the type of Enum here ( this should have been the custom Enum I created, but lets say I just forgot ). Then I create an object of BehaviourTree associated with the Blackboard type data, Inside this I create a selector as a child of the root ( In my exact setup if it matter I had Root->Selector->Selector). In the selector on the leaf of this tree I set a decorator of type Blackboard. Then I choose the Blackboard Key as the Enum key I created in the Blackboard data. As soon as I do this the editor crashes because I didn't specify the type of Enum in the Blackboard data. I expected it to give me an error and give me an opportunity to fix it rather to loose my work :)
asked Aug 28 '14 at 04:03 PM in Bug Reports
Thanks for the report! Also thanks for the clear set of repro steps.
I have just submitted a fix for this (as by coincidence I was working on this are of code at the time!). It is available in GitHub master branch at this commit.
answered Aug 29 '14 at 11:34 AM
Tom Sarkanen STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here