Custom Properties of PolyLineT Broken
- if a custom property is not existent, the handle obtained from
get_custom_property_handle()is 0. This, however, is a valid handle to the first existing property. Trying to operate on this handle will then either modify the wrong property or crash the program due to buffer overflows, if no properties exist.
- due to the above,
custom_property_availablecrashes if no properties exist.
get_custom_propertychecks whether the given handle is 0 and aborts if that is the case. Thus, the first property cannot be used.
- likely more
- unrelated to the above but also an error: using
get_custom_property_namewould cause a compile error due to const erorrs
I've hopefully fixed all of the above in the attached patch file.PolyLineT_custom_properties_fix.patch