diff --git a/src/GafferCycles/IECoreCyclesPreview/SocketAlgo.cpp b/src/GafferCycles/IECoreCyclesPreview/SocketAlgo.cpp index b4594f83c91..f2ff08bb0ea 100644 --- a/src/GafferCycles/IECoreCyclesPreview/SocketAlgo.cpp +++ b/src/GafferCycles/IECoreCyclesPreview/SocketAlgo.cpp @@ -424,16 +424,6 @@ void setSocket( ccl::Node *node, const ccl::SocketType *socket, const IECore::Da case ccl::SocketType::ENUM: setEnumSocket( node, *socket, value ); break; - case ccl::SocketType::TRANSFORM: - if( const M44fData *data = static_cast( value ) ) - { - node->set( *socket, setTransform( data->readable() ) ); - } - else if( const M44dData *data = static_cast( value ) ) - { - node->set( *socket, setTransform( data->readable() ) ); - } - break; case ccl::SocketType::BOOLEAN_ARRAY: setArraySocket( node, *socket, value ); break; @@ -455,38 +445,12 @@ void setSocket( ccl::Node *node, const ccl::SocketType *socket, const IECore::Da case ccl::SocketType::STRING_ARRAY: setArraySocket( node, *socket, value ); break; - case ccl::SocketType::TRANSFORM_ARRAY: - if( const M44dVectorData *data = static_cast( value ) ) - { - const vector &matrices = data->readable(); - auto matricesSize = matrices.size(); - ccl::array array( matricesSize ); - ccl::Transform *tdata = array.data(); - for(size_t i = 0; i < matricesSize; ++i) - { - auto m = matrices[i]; - *(tdata++) = setTransform( m ); - } - node->set( *socket, array ); - } - else if( const M44fVectorData *data = static_cast( value ) ) - { - const vector &matrices = data->readable(); - auto matricesSize = matrices.size(); - ccl::array array( matricesSize ); - ccl::Transform *tdata = array.data(); - for(size_t i = 0; i < matricesSize; ++i) - { - auto m = matrices[i]; - *(tdata++) = setTransform( m ); - } - node->set( *socket, array ); - } - break; - case ccl::SocketType::NODE: - case ccl::SocketType::NODE_ARRAY: - break; default: + IECore::msg( + IECore::Msg::Warning, "Cycles::SocketAlgo", + boost::format( "Unsupported socket type `%1%` for socket `%2%` on node `%3%`." ) + % ccl::SocketType::type_name( socket->type ) % value->typeName() % socket->name % node->name + ); break; } }