You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Prevent shader crash when name conflict with "dus" and "__" occured
(cherry picked from commit 2c4367441c)
This commit is contained in:
committed by
Rémi Verschelde
parent
72f7e4efe0
commit
0995696e08
@@ -662,6 +662,8 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
|
||||
idx++;
|
||||
}
|
||||
|
||||
str = str.replace("dus_", "_");
|
||||
|
||||
return _make_token(TK_IDENTIFIER, str);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user