Generated Dynamic Mesh not updating when using function

Hello everyone.

The title is sort of self explanatory. I’m using some boolean variables in my generated dynamic mesh blueprint to toggle certain parts of the mesh, and when i toggle them manually from editor it just works as intended. But if i make a function that sets those variables, the mesh doesn’t update. I have to move it or something else for the change to actually take effect. It seems changing a variable from a function doesn’t cause an update like doing it from editor does. Does anyone know of a way to force the mesh to update from this function?