mirror of
https://github.com/godotengine/godot
synced 2024-09-05 08:25:23 +00:00
Merge pull request #92470 from timothyqiu/drop-error
Fix error when dropping image onto the scene dock
This commit is contained in:
commit
e408c77f57
|
@ -3333,9 +3333,9 @@ void SceneTreeDock::_files_dropped(const Vector<String> &p_files, NodePath p_to,
|
|||
// Either instantiate scenes or create AudioStreamPlayers.
|
||||
int to_pos = -1;
|
||||
_normalize_drop(node, to_pos, p_type);
|
||||
if (res_type == "PackedScene") {
|
||||
if (ClassDB::is_parent_class(res_type, "PackedScene")) {
|
||||
_perform_instantiate_scenes(p_files, node, to_pos);
|
||||
} else {
|
||||
} else if (ClassDB::is_parent_class(res_type, "AudioStream")) {
|
||||
_perform_create_audio_stream_players(p_files, node, to_pos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue