You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fixes crash when calling VisualShader::set_mode
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user