|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: Patch submission » » » » Post: Re: Patch submission |
Print at Jan 21, 2026, 12:45:07 AM |
| Posted by nathanjshaffer at Aug 4, 2022, 12:44:01 AM |
|
Re: Patch submission That's a valid concern. Is the API what plugins use? Do API developers access these finctions directly, or does the API act as a layer? I wrote toFloatArray() / fromFloatArray functions in the Vector2D class that convert betweenn the two as there are same java built-in libraries that use float arrays, so that would help to transition any plugins that need to old return values. Anther option is to keep the old methods and mark them obsolete, then write new functions with a different name with the new return type. This would just require some new thinking about what the new method names would be since the old names were the best option. for example public Vector2D getArcCircleCenter(){...}could be public Vector2D getArcCircleCenterVector(){...}this would allow any old plugins to keep working |
|
|
Current timezone is GMT Jan 21, 2026, 12:45:07 AM |