Skip to content
Snippets Groups Projects
Commit a4698819 authored by Franziska Krebs's avatar Franziska Krebs
Browse files

fix fullfills type method when used in combination with dynamic sized ndarrays

parent 85d44a7c
No related branches found
No related tags found
No related merge requests found
Pipeline #20911 failed
......@@ -217,8 +217,9 @@ namespace armarx::aron::data
{
auto casted = type::Matrix::DynamicCastAndCheck(type);
ARMARX_TRACE;
return (aron->shape.size() == 3 && aron->shape[0] == casted->getRows() &&
aron->shape[1] == casted->getCols());
return (aron->shape.size() == 3 &&
(aron->shape[0] == casted->getRows() || casted->getRows() == -1) &&
(aron->shape[1] == casted->getCols() || casted->getCols() == -1));
}
case type::Descriptor::QUATERNION:
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment