You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
fixed problem where the script lists gets ordered even when ordering is disabled
This commit is contained in:
@@ -1558,7 +1558,15 @@ struct _ScriptEditorItemData {
|
|||||||
|
|
||||||
bool operator<(const _ScriptEditorItemData &id) const {
|
bool operator<(const _ScriptEditorItemData &id) const {
|
||||||
|
|
||||||
return category == id.category ? sort_key < id.sort_key : category < id.category;
|
if (category == id.category) {
|
||||||
|
if (sort_key == id.sort_key) {
|
||||||
|
return index < id.index;
|
||||||
|
} else {
|
||||||
|
return sort_key < id.sort_key;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return category < id.category;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user