Skip to content

Commit f27d77b

Browse files
Fix background filtering (#2339)
Should make it so that the background filtering follows the project default
1 parent 88ea565 commit f27d77b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

addons/dialogic/Modules/Background/subsystem_backgrounds.gd

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ func _on_transition_finished(background_node:DialogicNode_BackgroundHolder, tran
143143
background_node.color = Color.TRANSPARENT
144144
transition_node.queue_free()
145145

146+
146147
## Adds sub-viewport with the given background scene as child to
147148
## Dialogic scene.
148149
func add_background_node(scene:PackedScene, parent:DialogicNode_BackgroundHolder) -> SubViewportContainer:
@@ -166,6 +167,7 @@ func add_background_node(scene:PackedScene, parent:DialogicNode_BackgroundHolder
166167
viewport.transparent_bg = true
167168
viewport.disable_3d = true
168169
viewport.render_target_update_mode = SubViewport.UPDATE_ALWAYS
170+
viewport.canvas_item_default_texture_filter = ProjectSettings.get_setting("rendering/textures/canvas_textures/default_texture_filter")
169171

170172
viewport.add_child(b_scene)
171173
b_scene.viewport = viewport
@@ -176,6 +178,7 @@ func add_background_node(scene:PackedScene, parent:DialogicNode_BackgroundHolder
176178

177179
return v_con
178180

181+
179182
## Whether a background is set.
180183
func has_background() -> bool:
181184
return !dialogic.current_state_info.get('background_scene', '').is_empty() or !dialogic.current_state_info.get('background_argument','').is_empty()

0 commit comments

Comments
 (0)