Cleanup: Geometry Nodes: Use int instead of uint16_t #117594
@ -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;
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user