mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 13:41:03 +00:00 
			
		
		
		
	Fix completion for global constants in shaders
This commit is contained in:
		
							parent
							
								
									2b4290609a
								
							
						
					
					
						commit
						4201af6649
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -9383,6 +9383,9 @@ Error ShaderLanguage::complete(const String &p_code, const ShaderCompileInfo &p_ | |||
| 						} | ||||
| 					} | ||||
| 
 | ||||
| 					for (const KeyValue<StringName, ShaderNode::Constant> &E : shader->constants) { | ||||
| 						matches.insert(E.key, ScriptCodeCompletionOption::KIND_CONSTANT); | ||||
| 					} | ||||
| 					for (const KeyValue<StringName, ShaderNode::Varying> &E : shader->varyings) { | ||||
| 						matches.insert(E.key, ScriptCodeCompletionOption::KIND_VARIABLE); | ||||
| 					} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Yuri Roubinsky
						Yuri Roubinsky