Exposed blackboard AnimationCurve changes aren't registered

Forums 💬 NodeCanvas ⚙️ Support Exposed blackboard AnimationCurve changes aren't registered

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15722
    kiamvdd
    Participant

      Exposed AnimationCurve blackboard variables do not register any changes made in the graph owner inspector.

      How to reproduce:
      1. Create a behavior tree owner in an empty scene
      2. Create a bound graph on the owner
      3. Create an AnimationCurve graph variable
      4. Expose the variable and override it
      5. Save the scene
      6. Modify the exposed variable in the inspector
      7. Note that the scene is not marked as dirty, despite having made a change

      We have temporarily been able to fix this by adding a EditorGUI.BeginChangeCheck() in EditorUtils.ReflectedInspector.DrawEditorFieldDirect(), right before the call to DirectFieldControl(), and then taking EditorGUI.EndChangeCheck() into account in the “changed” check. The code then looks like this:

      Don’t know if this is the best solution, but it seems to work for us.

      #15723
      Gavalakis
      Keymaster

        Hi. Thanks and good call.
        I will look into it, but your fix seems good and in the correct spot 🙂

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