Changeset 25:677b14542f29 in finroc_plugins_composite_ports


Ignore:
Timestamp:
30.03.2021 00:18:32 (3 weeks ago)
Author:
Max Reichardt <mreichardt@…>
Branch:
default
Phase:
public
Message:

Makes partial port composite interfaces always interconnectible with full interfaces (bugfix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • internal/tInterfaceTypeInfo.cpp

    r23 r25  
    134134  if (create_partial_type) 
    135135  { 
    136     this->type_info_partial = new rrlib::rtti::detail::tTypeInfo(partial_type_info, type_info->type_traits, type_info, type_info->element_type, nullptr, type_info->size); 
     136    this->type_info_partial = new rrlib::rtti::detail::tTypeInfo(partial_type_info, type_info->type_traits | (rrlib::rtti::trait_flags::cHAS_UNDERLYING_TYPE | rrlib::rtti::trait_flags::cIS_CAST_TO_UNDERLYING_TYPE_IMPLICIT | rrlib::rtti::trait_flags::cIS_REINTERPRET_CAST_FROM_UNDERLYING_TYPE_VALID | rrlib::rtti::trait_flags::cIS_CAST_FROM_UNDERLYING_TYPE_IMPLICIT), type_info, type_info->element_type, nullptr, type_info->size); 
    137137    auto partial_shared_info = new tInterfaceTypeInfo(this->type_info_partial, create_function, rrlib::util::tManagedConstCharPointer((rrlib::rtti::tType(type_info).GetName() + " (partial)").c_str(), true)); 
    138138    this->type_info_partial->shared_info = partial_shared_info; 
Note: See TracChangeset for help on using the changeset viewer.