Explorar el Código

Fix description of Viewport `find_world_2d()` method.

The doc now states that the method searches for a World2D among ancestor Viewports as well, differentiating it from the get_world_2d() getter.

and also find_world_3d()

(cherry picked from commit 81c1d5197e40415c20520b1ae90560b7cad2210e)
zacryol hace 3 años
padre
commit
dd94440509
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      doc/classes/Viewport.xml

+ 2 - 2
doc/classes/Viewport.xml

@@ -25,13 +25,13 @@
 		<method name="find_world" qualifiers="const">
 			<return type="World" />
 			<description>
-				Returns the 3D world of the viewport, or if none the world of the parent viewport.
+				Returns the first valid [World] for this viewport, searching the [member world] property of itself and any Viewport ancestor.
 			</description>
 		</method>
 		<method name="find_world_2d" qualifiers="const">
 			<return type="World2D" />
 			<description>
-				Returns the 2D world of the viewport.
+				Returns the first valid [World2D] for this viewport, searching the [member world_2d] property of itself and any Viewport ancestor.
 			</description>
 		</method>
 		<method name="get_camera" qualifiers="const">