Fixes directional light overlay leaking the lighting mask and not updating direction correctly (#70578)

Fixes light direction/overlays when changing holder of light overlay
This commit is contained in:
Tastyfish
2022-10-19 22:18:17 -04:00
committed by GitHub
parent 9bf96c7763
commit 2011c8586d
+2 -1
View File
@@ -251,7 +251,8 @@
RegisterSignal(new_holder, COMSIG_MOVABLE_MOVED, .proc/on_holder_moved)
if(directional)
RegisterSignal(new_holder, COMSIG_ATOM_DIR_CHANGE, .proc/on_holder_dir_change)
set_direction(new_holder.dir)
if(directional && current_direction != new_holder.dir)
current_direction = new_holder.dir
if(overlay_lighting_flags & LIGHTING_ON)
add_dynamic_lumi()
make_luminosity_update()