mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-01 06:01:14 +00:00 
			
		
		
		
	Fixes crash when calling VisualShader::set_mode
This commit is contained in:
		
							parent
							
								
									cb64f2d96b
								
							
						
					
					
						commit
						f455f873c7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -675,6 +675,8 @@ void VisualShader::get_node_connections(Type p_type, List<Connection> *r_connect | |||
| } | ||||
| 
 | ||||
| void VisualShader::set_mode(Mode p_mode) { | ||||
| 	ERR_FAIL_INDEX_MSG(p_mode, Mode::MODE_MAX, vformat("Invalid shader mode: %d.", p_mode)); | ||||
| 
 | ||||
| 	if (shader_mode == p_mode) { | ||||
| 		return; | ||||
| 	} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 andybarcia
						andybarcia