Browse Source

Merge pull request #58597 from IgorKordiukiewicz/remove-files-dropped-signal-from-scene-tree

Remove files_dropped signal from SceneTree
Rémi Verschelde 3 years ago
parent
commit
6716af9f83
3 changed files with 1 additions and 9 deletions
  1. 0 7
      doc/classes/SceneTree.xml
  2. 1 0
      doc/classes/Window.xml
  3. 0 2
      scene/main/scene_tree.cpp

+ 0 - 7
doc/classes/SceneTree.xml

@@ -232,13 +232,6 @@
 		</member>
 		</member>
 	</members>
 	</members>
 	<signals>
 	<signals>
-		<signal name="files_dropped">
-			<argument index="0" name="files" type="PackedStringArray" />
-			<argument index="1" name="screen" type="int" />
-			<description>
-				Emitted when files are dragged from the OS file manager and dropped in the game window. The arguments are a list of file paths and the identifier of the screen where the drag originated.
-			</description>
-		</signal>
 		<signal name="node_added">
 		<signal name="node_added">
 			<argument index="0" name="node" type="Node" />
 			<argument index="0" name="node" type="Node" />
 			<description>
 			<description>

+ 1 - 0
doc/classes/Window.xml

@@ -348,6 +348,7 @@
 		<signal name="files_dropped">
 		<signal name="files_dropped">
 			<argument index="0" name="files" type="PackedStringArray" />
 			<argument index="0" name="files" type="PackedStringArray" />
 			<description>
 			<description>
+				Emitted when files are dragged from the OS file manager and dropped in the game window. The argument is a list of file paths.
 			</description>
 			</description>
 		</signal>
 		</signal>
 		<signal name="focus_entered">
 		<signal name="focus_entered">

+ 0 - 2
scene/main/scene_tree.cpp

@@ -1256,8 +1256,6 @@ void SceneTree::_bind_methods() {
 	ADD_SIGNAL(MethodInfo("process_frame"));
 	ADD_SIGNAL(MethodInfo("process_frame"));
 	ADD_SIGNAL(MethodInfo("physics_frame"));
 	ADD_SIGNAL(MethodInfo("physics_frame"));
 
 
-	ADD_SIGNAL(MethodInfo("files_dropped", PropertyInfo(Variant::PACKED_STRING_ARRAY, "files"), PropertyInfo(Variant::INT, "screen")));
-
 	BIND_ENUM_CONSTANT(GROUP_CALL_DEFAULT);
 	BIND_ENUM_CONSTANT(GROUP_CALL_DEFAULT);
 	BIND_ENUM_CONSTANT(GROUP_CALL_REVERSE);
 	BIND_ENUM_CONSTANT(GROUP_CALL_REVERSE);
 	BIND_ENUM_CONSTANT(GROUP_CALL_REALTIME);
 	BIND_ENUM_CONSTANT(GROUP_CALL_REALTIME);