mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-26 11:14:17 +00:00 
			
		
		
		
	Fix warning when editor resource preview try to read pluginscript resource
This commit is contained in:
		
							parent
							
								
									cc487f8ce9
								
							
						
					
					
						commit
						58f3ad69c7
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -45,7 +45,11 @@ void PluginScriptLanguage::init() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| String PluginScriptLanguage::get_type() const { | String PluginScriptLanguage::get_type() const { | ||||||
| 	return String(_desc.type); | 	// We should use _desc.type here, however the returned type is used to
 | ||||||
|  | 	// query ClassDB which would complain given the type is not registered
 | ||||||
|  | 	// from his point of view...
 | ||||||
|  | 	// To solve this we just use a more generic (but present in ClassDB) type.
 | ||||||
|  | 	return String("PluginScript"); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| String PluginScriptLanguage::get_extension() const { | String PluginScriptLanguage::get_extension() const { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Emmanuel Leblond
						Emmanuel Leblond