Skip to content

Commit 12f9978

Browse files
committed
Fixed node screenshot capture script
1 parent 55e61b0 commit 12f9978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

material_maker/panels/library/library.gd

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ func generate_screenshots(graph_edit, item : TreeItem = null) -> int:
189189
yield(timer, "timeout")
190190
var image = get_viewport().get_texture().get_data()
191191
image.flip_y()
192-
image = image.get_rect(Rect2(new_nodes[0].rect_global_position-Vector2(1, 2), new_nodes[0].rect_size+Vector2(4, 4)))
192+
image = image.get_rect(Rect2(new_nodes[0].rect_global_position, new_nodes[0].rect_size+Vector2(0, 2)))
193193
print(get_icon_name(get_item_path(item)))
194194
image.save_png("res://material_maker/doc/images/node_"+get_icon_name(get_item_path(item))+".png")
195195
for n in new_nodes:

0 commit comments

Comments
 (0)