Explorar el Código

Rename VisualScriptEditor singleton to VisualScriptCustomNodes

Follow-up to #51916, fixes inconsistency between singleton name and class
as documented in https://github.com/godotengine/godot/issues/52162#issuecomment-918979753.
Rémi Verschelde hace 4 años
padre
commit
f1dca7760c
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      doc/classes/@GlobalScope.xml
  2. 1 1
      modules/visual_script/register_types.cpp

+ 1 - 1
doc/classes/@GlobalScope.xml

@@ -1069,7 +1069,7 @@
 		<member name="TranslationServer" type="TranslationServer" setter="" getter="">
 		<member name="TranslationServer" type="TranslationServer" setter="" getter="">
 			The [TranslationServer] singleton.
 			The [TranslationServer] singleton.
 		</member>
 		</member>
-		<member name="VisualScriptEditor" type="VisualScriptCustomNodes" setter="" getter="">
+		<member name="VisualScriptCustomNodes" type="VisualScriptCustomNodes" setter="" getter="">
 			The [VisualScriptCustomNodes] singleton.
 			The [VisualScriptCustomNodes] singleton.
 		</member>
 		</member>
 		<member name="XRServer" type="XRServer" setter="" getter="">
 		<member name="XRServer" type="XRServer" setter="" getter="">

+ 1 - 1
modules/visual_script/register_types.cpp

@@ -117,7 +117,7 @@ void register_visual_script_types() {
 	GDREGISTER_CLASS(VisualScriptCustomNodes);
 	GDREGISTER_CLASS(VisualScriptCustomNodes);
 	ClassDB::set_current_api(ClassDB::API_CORE);
 	ClassDB::set_current_api(ClassDB::API_CORE);
 	vs_custom_nodes_singleton = memnew(VisualScriptCustomNodes);
 	vs_custom_nodes_singleton = memnew(VisualScriptCustomNodes);
-	Engine::get_singleton()->add_singleton(Engine::Singleton("VisualScriptEditor", VisualScriptCustomNodes::get_singleton()));
+	Engine::get_singleton()->add_singleton(Engine::Singleton("VisualScriptCustomNodes", VisualScriptCustomNodes::get_singleton()));
 
 
 	VisualScriptEditor::register_editor();
 	VisualScriptEditor::register_editor();
 #endif
 #endif