You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fixes SDF Collision Enable/Disable
- sets LightOccluderInstance field when sdf collision is updated - adds check for light occluder sdf_collision field in 2d renderers
This commit is contained in:
@@ -1931,7 +1931,7 @@ void RendererCanvasRenderRD::render_sdf(RID p_render_target, LightOccluderInstan
|
||||
while (instance) {
|
||||
OccluderPolygon *co = occluder_polygon_owner.get_or_null(instance->occluder);
|
||||
|
||||
if (!co || co->sdf_index_array.is_null()) {
|
||||
if (!co || co->sdf_index_array.is_null() || !instance->sdf_collision) {
|
||||
instance = instance->next;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user