Skip to content

Commit 2bdf6b8

Browse files
committed
registration: fix issue to handle correctly the symlink of the types
1 parent ca86a5d commit 2bdf6b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/eigenpy/registration.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ namespace eigenpy
4343
{
4444
namespace bp = boost::python;
4545

46-
const bp::type_info info = bp::type_id<T>();
47-
const bp::converter::registration* reg = bp::converter::registry::query(info);
48-
49-
if(check_registration<T>())
46+
if(eigenpy::check_registration<T>())
5047
{
51-
bp::scope().attr(info.name()) = reg->get_class_object();
48+
const bp::type_info info = bp::type_id<T>();
49+
const bp::converter::registration* reg = bp::converter::registry::query(info);
50+
bp::handle<> class_obj(reg->get_class_object());
51+
bp::scope().attr(reg->get_class_object()->tp_name) = bp::object(class_obj);
5252
return true;
5353
}
5454

0 commit comments

Comments
 (0)