mirror of
https://github.com/Relintai/material-maker.git
synced 2025-01-09 05:39:38 +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
|
m.ao_enabled = false
|
||||||
# Depth
|
# Depth
|
||||||
texture = get_generated_texture("depth", file_prefix)
|
texture = get_generated_texture("depth", file_prefix)
|
||||||
if texture != null:
|
if texture != null and parameters.depth_scale > 0:
|
||||||
m.depth_enabled = true
|
m.depth_enabled = true
|
||||||
m.depth_deep_parallax = true
|
m.depth_deep_parallax = true
|
||||||
m.depth_scale = parameters.depth_scale * 0.2
|
m.depth_scale = parameters.depth_scale * 0.2
|
||||||
|
@ -77,7 +77,7 @@ func remove_node(node) -> void:
|
|||||||
if node == last_selected:
|
if node == last_selected:
|
||||||
set_last_selected(null)
|
set_last_selected(null)
|
||||||
remove_child(node)
|
remove_child(node)
|
||||||
node.free()
|
node.queue_free()
|
||||||
send_changed_signal()
|
send_changed_signal()
|
||||||
|
|
||||||
# Global operations on graph
|
# Global operations on graph
|
||||||
|
Loading…
Reference in New Issue
Block a user