mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fix regression with enum descriptions now showing up in documentation.
(cherry picked from commit d48636c3bf)
			
			
This commit is contained in:
		
							parent
							
								
									705c1d6bdf
								
							
						
					
					
						commit
						a0366f1cea
					
				
					 2 changed files with 3 additions and 2 deletions
				
			
		|  | @ -236,6 +236,8 @@ void GDScriptDocGen::generate_docs(GDScript *p_script, const GDP::ClassNode *p_c | |||
| 
 | ||||
| 				p_script->member_lines[name] = m_enum->start_line; | ||||
| 
 | ||||
| 				doc.enums[name] = m_enum->doc_description; | ||||
| 
 | ||||
| 				for (const GDP::EnumNode::Value &val : m_enum->values) { | ||||
| 					DocData::ConstantDoc const_doc; | ||||
| 					const_doc.name = val.identifier->name; | ||||
|  | @ -244,7 +246,6 @@ void GDScriptDocGen::generate_docs(GDScript *p_script, const GDP::ClassNode *p_c | |||
| 					const_doc.description = val.doc_description; | ||||
| 					const_doc.enumeration = name; | ||||
| 
 | ||||
| 					doc.enums[const_doc.name] = const_doc.description; | ||||
| 					doc.constants.push_back(const_doc); | ||||
| 				} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 ocean (they/them)
						ocean (they/them)