From 836908202a9534908533477a8bccb501e42ebc62 Mon Sep 17 00:00:00 2001 From: RodZill4 Date: Sat, 28 Mar 2020 09:57:10 +0100 Subject: [PATCH] Fixed 3D preview problem --- material_maker/main_window.gd | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/material_maker/main_window.gd b/material_maker/main_window.gd index 8b8c87e..31d630e 100644 --- a/material_maker/main_window.gd +++ b/material_maker/main_window.gd @@ -595,19 +595,13 @@ func update_preview_2d(node = null) -> void: preview_2d_background.set_generator(null) func update_preview_3d(previews : Array) -> void: - var visible_previews = [] - for p in previews: - if p.is_visible_in_tree(): - visible_previews.push_back(p) - if visible_previews.empty(): - return var graph_edit : MMGraphEdit = get_current_graph_edit() if graph_edit != null and graph_edit.top_generator != null and graph_edit.top_generator.has_node("Material"): var gen_material = graph_edit.top_generator.get_node("Material") var status = gen_material.render_textures() while status is GDScriptFunctionState: status = yield(status, "completed") - for p in visible_previews: + for p in previews: gen_material.update_materials(p.get_materials()) var selected_node = null