get_property inconsistent return value over build configs
Hi, consider the following code:
Mesh mesh; std::string = "prop"; VPropHandleT<float> prop_float; mesh.add_property(prop_float, name); VPropHandleT<Vec3d> prop_vec; //<-- different type bool result = mesh.get_property_handle(prop_vec, name); //<-- request handle with wrong type
The output in result depends on the Build Configuration.
- In Debug mode, following holds:
- In Release mode, following holds:
It is because in "PropertyContainer.h", the type check is disabled in Release mode (line 126-128).
The function should return the same value over the different build configurations.
(I would prefer the type check enabled, because it seems to be complex, checking outside of the PropertyContainer if the type of your prophandle is the correct one
edit or provide an additional member-function "has_type", or something like this, skipping the dynamic_cast in get_property)