You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Prevent shader crash when name conflict with "dus" and "__" occured
This commit is contained in:
@@ -662,6 +662,8 @@ ShaderLanguage::Token ShaderLanguage::_get_token() {
|
|||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
str = str.replace("dus_", "_");
|
||||||
|
|
||||||
return _make_token(TK_IDENTIFIER, str);
|
return _make_token(TK_IDENTIFIER, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user