mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-30 21:21:10 +00:00 
			
		
		
		
	Implement source lookup for class_name defined classes
Previous to this, classes defined with class_name had no behavior when ctrl-clicked in the editor. Fixes #26882
This commit is contained in:
		
							parent
							
								
									7b67c5857f
								
							
						
					
					
						commit
						e8fe174616
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -620,7 +620,9 @@ void ScriptTextEditor::_lookup_symbol(const String &p_symbol, int p_row, int p_c | |||
| 	} | ||||
| 
 | ||||
| 	ScriptLanguage::LookupResult result; | ||||
| 	if (p_symbol.is_resource_file()) { | ||||
| 	if (ScriptServer::is_global_class(p_symbol)) { | ||||
| 		EditorNode::get_singleton()->load_resource(ScriptServer::get_global_class_path(p_symbol)); | ||||
| 	} else if (p_symbol.is_resource_file()) { | ||||
| 		List<String> scene_extensions; | ||||
| 		ResourceLoader::get_recognized_extensions_for_type("PackedScene", &scene_extensions); | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Pedro Ciambra
						Pedro Ciambra