Properly call initialize() in mm material 's render.

This commit is contained in:
Relintai 2022-01-21 13:35:14 +01:00
parent b5dbe0b6dd
commit 4237b0c7c9

View File

@ -49,15 +49,14 @@ func remove_node(node : MMNode) -> void:
emit_changed() emit_changed()
func render() -> void: func render() -> void:
initialize()
if USE_THREADS: if USE_THREADS:
render_threaded() render_threaded()
else: else:
render_non_threaded() render_non_threaded()
func render_non_threaded() -> void: func render_non_threaded() -> void:
if !initialized:
initialize()
var did_render : bool = true var did_render : bool = true
while did_render: while did_render: