On 17/09/2015 at 06:35, xxxxxxxx wrote:
Cinema 4D Version:
Why has the SDK SetSuffix() routine been changed in R17? In all previous versions of the SDK, SetSuffix() would append a dot and the extension string to a filename. In R17, it first removes anything up to the last dot in the filename, then adds the extension. So a filename which starts as 'anObject.1' and then SetSuffix("obj") is called in R16 or earlier, becomes 'anObject.1.obj' but in R17 it becomes 'anObject.obj'.
This makes a lot of difference if filenames are constructed based on an object's name. The object manager appends a dot and a number if more than one object with the same name is created. This means that deriving a filename from the object name will be different as long as the object name is different, but in R17 the files will all have the same name if the only difference in the object name is the dot plus number.
This didn't seem to be broken, so why fix it? And if it needed changing, why has it not been documented?