Pixenal / MULDIFA

MULDIFA is an addon for Blender (2.83+) which implements a distance field. It adds the ability to create a field within a scene, and allows one to interact with it.
GNU General Public License v3.0
1 stars 0 forks source link

Can't update volume/df maps #1

Open Kovadon opened 10 months ago

Kovadon commented 10 months ago

tried to get this to update every frame through a little blender script, but even with that removed i can no longer update the DF Maps:

Python: Traceback (most recent call last): File "C:\Users\JR3D\AppData\Roaming\Blender Foundation\Blender\4.0\scripts\addons\MULDIFA\df_ops.py", line 1417, in execute df_lib.call_df_update(ctypes.byref(ctypes.c_ulong(obj.dfc_id)), ctypes.byref(dfc_index)) OSError: exception: access violation reading 0x000001B2C59457D8

Pixenal commented 10 months ago

Blender will crash in render if the update operator is called per frame, due to an issue described here: https://docs.blender.org/api/master/bpy.app.handlers.html#note-on-altering-data Enabling use_lock_interface as described above, seems to resolve this issue. (I don't recall why I didn't add this as an option in the addon sorry. I may not have been aware of this fix at the time, or maybe other issues arose from enabling the setting? I can look into it when I have some time).

Though your getting a crash even without the script active, so I'm guessing something's probably broken in the addon state. Would you be able to send over the script you used to update per frame? I can try and reproduce the crash on my end.