Skip to content

Commit f9bf45b

Browse files
committed
Fixed Render to reference in 2D Preview
1 parent 15ed529 commit f9bf45b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

material_maker/panels/preview_2d/preview_2d.gd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func export_as_image_file(file_name : String, image_size : Vector2i) -> void:
148148
func export_to_reference(image_size : Vector2i):
149149
if generator != null:
150150
var texture : MMTexture = await generator.render_output_to_texture(output, image_size)
151-
mm_globals.main_window.get_panel("Reference").add_reference(ImageTexture.create_from_image(await texture.get_image()))
151+
mm_globals.main_window.get_panel("Reference").add_reference(ImageTexture.create_from_image((await texture.get_texture()).get_image()))
152152

153153

154154
func _on_Preview2D_visibility_changed():

0 commit comments

Comments
 (0)