浏览代码

Merge pull request #39521 from 31/fix-image-createfromdata

Fix Image.create_from_data "use_mipmaps" class doc
Rémi Verschelde 5 年之前
父节点
当前提交
808e0d3693
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/classes/Image.xml

+ 1 - 1
doc/classes/Image.xml

@@ -154,7 +154,7 @@
 			<argument index="4" name="data" type="PackedByteArray">
 			</argument>
 			<description>
-				Creates a new image of given size and format. See [enum Format] constants. Fills the image with the given raw data. If [code]use_mipmaps[/code] is [code]true[/code] then generate mipmaps for this image. See the [method generate_mipmaps].
+				Creates a new image of given size and format. See [enum Format] constants. Fills the image with the given raw data. If [code]use_mipmaps[/code] is [code]true[/code] then loads mipmaps for this image from [code]data[/code]. See [method generate_mipmaps].
 			</description>
 		</method>
 		<method name="crop">