Skip to content

IKFast COLLADA rounding silently skips COLLADA 1.4 documents #4028

Backlog

Description

@sylvesterkaczmarek

[written by AI]

Description

The IKFast COLLADA rounding script hard-codes the COLLADA 1.5 namespace. Valid COLLADA 1.4.1 documents are copied without rounding, and unsupported namespaces silently succeed.

Reproduction

Run round_collada_numbers.py input.dae output.dae 2 with an input containing a translate element in the COLLADA 1.4 namespace (http://www.collada.org/2005/11/COLLADASchema), for example 1.23456 2.98765 3.0.

Expected behavior

Round the translation to 1.23 2.99 3.0, as for COLLADA 1.5. Reject unsupported documents with an error.

Actual behavior

The script exits successfully but the original precision remains unchanged.

Environment

Reproduced at main (5399d29), Python 3.12 and lxml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions