mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
Fix regression: methods returning const char pointer were ignored.
This commit is contained in:
parent
53d10aa3a3
commit
eaedfa68dc
@ -6415,8 +6415,9 @@ is_remap_legal(FunctionRemap *remap) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// We don't currently support returning pointers, but we accept
|
// We don't currently support returning pointers, but we accept
|
||||||
// them as function parameters.
|
// them as function parameters. But const char * is an exception.
|
||||||
if (TypeManager::is_pointer_to_simple(remap->_return_type->get_orig_type())) {
|
if (!remap->_return_type->new_type_is_atomic_string() &&
|
||||||
|
TypeManager::is_pointer_to_simple(remap->_return_type->get_orig_type())) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user