mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix ShaderMaterial::_property_get_revert
crash when given non-exist p_name
This commit is contained in:
parent
6fea273ed3
commit
f04b584ed3
@ -372,7 +372,7 @@ bool ShaderMaterial::_property_can_revert(const StringName &p_name) const {
|
||||
bool ShaderMaterial::_property_get_revert(const StringName &p_name, Variant &r_property) const {
|
||||
if (shader.is_valid()) {
|
||||
const StringName *pr = remap_cache.getptr(p_name);
|
||||
if (*pr) {
|
||||
if (pr) {
|
||||
r_property = RenderingServer::get_singleton()->shader_get_parameter_default(shader->get_rid(), *pr);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user