cantele wrote:
I was trying to clone a camera. Apparently it always returns 0. It's somewhat annoying to find this out *after* reading the documentation. I know there is a TODO in the code, maybe I should read all of those before trying anything new.
You are welcome to implement this feature, and submit a patch - the engine is in beta, so patches are good, and one can't expect everything to work flawlessly from the get go.
Quote:
IMO, it should throw an exception stating something sensible at the very least.
It returns a Null reference on failure, as is consistent with the rest of the API. An exception would not be good, because the public API is accessible from C, which does not support exceptions.