ID 397803 - FnGeolibCookInterfaceUtils GetGlobalXFormGroup() returns a valid empty group if the input location path is invalid

Follow

Problem summary:

Calling GetGlobalXFormGroup() with an invalid input location path – either an absolute or relative location path that does not exist, or a relative path from a null input location path (i.e. for newly created or re-created locations) – returns a valid empty group attribute, rather than an invalid group attribute to indicate failure.

Steps to reproduce:

Obtain the result of Interface.GetGlobalXFormGroup("/root/some/location/that/does/not/exist") in an OpScript.

Expected behaviour:

The result should be null ('nil' in OpScript, an invalid attribute in C++), thus providing an indication of the failure to access the given location.

Actual behaviour:

The result is a valid empty group attribute.

Workaround:

Check validity of input location path independently.

Tested versions/platforms:

  • All versions (2.0+) - Affected

    We're sorry to hear that

    Please tell us why