Cleanup: Geometry Nodes: Use int instead of uint16_t #117594

Merged
Hans Goudey merged 2 commits from mod_moder/blender:tml_cleanup_simple_art_type into main 2024-01-28 15:45:43 +01:00
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ void NodeEnumDefinition::clear()
this->active_index = int16_t(active_index);
}
bool NodeEnumDefinition::move_item(const uint16_t from_index, const uint16_t to_index)
bool NodeEnumDefinition::move_item(const int from_index, const int to_index)
{
if (to_index < this->items_num) {
const int items_num = this->items_num;

View File

@ -1659,7 +1659,7 @@ typedef struct NodeEnumDefinition {
NodeEnumItem *add_item(blender::StringRef name);
bool remove_item(NodeEnumItem &item);
void clear();
bool move_item(uint16_t from_index, uint16_t to_index);
bool move_item(int from_index, int to_index);
const NodeEnumItem *active_item() const;
NodeEnumItem *active_item();