0
Fixed

formula bug

Elapse 7 months ago • updated by Lazlo Bonin (Lead Developer) 2 months ago 3

Hello,

just updated to the latest bolt version and there is a bug in the formula modul. It doesn't update its values anymore, in my case in a for loop.

To simply recreate this issue: use a for loop (0;5;1) inside a input button event, a formula A+B connected to a debug.log message in the body and insert a literal integer 1 for A and the index for B.

When triggering, the debug.log always puts the literal integer out.

Greetz Marten

Bolt Version:
latest
Unity Version:
2018.2.14f1
.NET Version:
4.x
GOOD, I'M SATISFIED
Satisfaction mark by Elapse 7 months ago
+1
Working on Fix

Hi Elapse,

That's a regression introduced in v.1.4.0f11 indeed. I changed the Formula unit to cache its inputs. I realize now from your report that it can cause unwanted effects.

I'll change the behaviour back to normal in v1.4.0f12, and add an optional checkbox for input caching. Thanks for pointing it out!

+1
Fixed in Next Version

Fixed for v.1.4.0f12, added a checkbox (default false, previous behaviour):