semagnum / light-painter

Blender add-on that creates lights based on where the user paints.
https://semagnum.github.io/light-painter/
GNU General Public License v3.0
310 stars 6 forks source link

Mesh tools update doesn't show emission #50

Closed semagnum closed 9 months ago

semagnum commented 10 months ago

When drawing or in drag mode with the Mesh or Tube Light Paint tools, the mesh will update in rendered mode but the emission doesn't show up until the user stops using the commands.

It's due to how the mesh re-evaluates/regenerates with each input command to take parameter updates into account. Blender seems to not fully initialize the lighting since the mesh is being reevaluated. It'll require the update functions to be more adaptive - to only update/clear geometry when necessary.