mirror of
https://github.com/godotengine/godot.git
synced 2025-02-16 15:50:45 +00:00
Add support for dragging a shader to user exported material property
This commit is contained in:
parent
ee363af0ed
commit
da5f7c6b40
@ -618,9 +618,9 @@ void EditorResourcePicker::_ensure_allowed_types() const {
|
||||
const String base = allowed_types[i].strip_edges();
|
||||
if (base == "BaseMaterial3D") {
|
||||
allowed_types_with_convert.insert("Texture2D");
|
||||
} else if (base == "ShaderMaterial") {
|
||||
} else if (ClassDB::is_parent_class("ShaderMaterial", base)) {
|
||||
allowed_types_with_convert.insert("Shader");
|
||||
} else if (base == "Texture2D") {
|
||||
} else if (ClassDB::is_parent_class("ImageTexture", base)) {
|
||||
allowed_types_with_convert.insert("Image");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user