Fixed graph node free error

This commit is contained in:
RodZill4 2020-01-05 12:36:46 +01:00
parent 44a71faccc
commit 71dce8108d
2 changed files with 2 additions and 2 deletions

View File

@ -200,7 +200,7 @@ func update_spatial_material(m, file_prefix = null) -> void:
m.ao_enabled = false
# Depth
texture = get_generated_texture("depth", file_prefix)
if texture != null:
if texture != null and parameters.depth_scale > 0:
m.depth_enabled = true
m.depth_deep_parallax = true
m.depth_scale = parameters.depth_scale * 0.2

View File

@ -77,7 +77,7 @@ func remove_node(node) -> void:
if node == last_selected:
set_last_selected(null)
remove_child(node)
node.free()
node.queue_free()
send_changed_signal()
# Global operations on graph