From 64fac9dd5d8ad360c783020a62a04c8434f5e143 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Mon, 17 Feb 2020 00:01:52 +0100 Subject: Allow using `MeshLibrary.get_item_preview()` in non-editor builds again This closes #36268. --- doc/classes/MeshLibrary.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc/classes') diff --git a/doc/classes/MeshLibrary.xml b/doc/classes/MeshLibrary.xml index 3a3dd08caf..6b0dca326f 100644 --- a/doc/classes/MeshLibrary.xml +++ b/doc/classes/MeshLibrary.xml @@ -84,8 +84,7 @@ - Returns a generated item preview (a 3D rendering in isometric perspective). - [b]Note:[/b] Since item previews are only generated in an editor context, this function will return an empty [Texture2D] in a running project. + When running in the editor, returns a generated item preview (a 3D rendering in isometric perspective). When used in a running project, returns the manually-defined item preview which can be set using [method set_item_preview]. Returns an empty [Texture2D] if no preview was manually set in a running project. -- cgit v1.2.3