mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
interrogate: don't export bindings for global operators
linmath exports a global __mul__, which isn't really useful.
This commit is contained in:
parent
6d927aaa52
commit
c37a33baef
@ -7526,6 +7526,12 @@ is_remap_legal(FunctionRemap *remap) {
|
||||
}
|
||||
}
|
||||
|
||||
// Don't export global operators.
|
||||
if (!remap->_has_this &&
|
||||
remap->_cppfunc->get_simple_name().compare(0, 9, "operator ") == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// ok all looks ok.
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user