You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Check is the ref shader valid in visual shader's update_option_menu
This commit is contained in:
@@ -3591,6 +3591,10 @@ String VisualShaderNodeParameterRef::get_output_port_name(int p_port) const {
|
||||
return "";
|
||||
}
|
||||
|
||||
bool VisualShaderNodeParameterRef::is_shader_valid() const {
|
||||
return shader_rid.is_valid();
|
||||
}
|
||||
|
||||
void VisualShaderNodeParameterRef::set_shader_rid(const RID &p_shader_rid) {
|
||||
shader_rid = p_shader_rid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user