Merge branch 'fix_2952' of https://github.com/amir9480/FlaxEngine into amir9480-fix_2952
This commit is contained in:
@@ -288,7 +288,11 @@ namespace FlaxEditor.Windows.Assets
|
||||
// Use blackboard from the root node
|
||||
var rootNode = _surface.FindNode(19, 2) as Surface.Archetypes.BehaviorTree.Node;
|
||||
if (rootNode != null)
|
||||
{
|
||||
rootNode.ValuesChanged -= UpdateKnowledge;
|
||||
rootNode.ValuesChanged += UpdateKnowledge;
|
||||
}
|
||||
|
||||
var rootInstance = rootNode?.Instance as BehaviorTreeRootNode;
|
||||
var blackboardType = TypeUtils.GetType(rootInstance?.BlackboardType);
|
||||
if (blackboardType)
|
||||
|
||||
Reference in New Issue
Block a user