mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
Fixed graph node free error
This commit is contained in:
parent
44a71faccc
commit
71dce8108d
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user