Improve Python types.

This commit is contained in:
Erik Ogenvik 2018-10-15 17:40:08 +02:00
parent 3fe05cd2f3
commit bfc4e18b29
4 changed files with 162 additions and 20 deletions

View file

@ -131,5 +131,5 @@ Py::Object CyPy_Entity::mod_property(const Ref<Entity>& entity, const Py::Tuple&
if (prop->get(value) != 0) {
throw Py::RuntimeError(String::compose("Could not create property '%1'.", name));
}
return CyPy_Element::asPyObject(value);
return CyPy_Element::asPyObject(value, false);
}