Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
StudioWEngineers committed Oct 23, 2024
1 parent 8f266d1 commit 9db22e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bindings/bnd_extensions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -699,8 +699,7 @@ BND_FileObject* BND_ONXModel_ObjectTable::ModelObjectAt(int index)

#if defined(ON_PYTHON_COMPILE)
if (index < 0)
int new_index = m_compref_cache.Count() + index;
index = new_index < 0 ? std::abs(new_index) : new_index;
index = m_compref_cache.Count() + index < 0 ? std::abs(index) : m_compref_cache.Count() + index;
#endif

if (index < m_compref_cache.Count())
Expand Down

0 comments on commit 9db22e9

Please sign in to comment.