Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-78868

Asset Import: Do not use Qt.vector3d(-90, 0, 0) syntax

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P2: Important
    • 5.14.0 Beta 1
    • None
    • Quick: 3D
    • None

    Description

      Qt Design Studio assigns rotations as rotation.x, rotation.y, rotation.z.

      The asset importer uses this syntax:
      rotation: Qt.vector3d(-90, 0, 0)
      scale: Qt.vector3d(0.2, 0.2, 0.2)

      We should not mix different ways of defining properties.
      For QDS rotation.y is the most natural way to assign such properties,
      because Qt.vector3d() is technically a function.

      The importer should create files that are 'designer-friendly'.

      The current syntax (Qt.vector3d(0.2, 0.2, 0.2) is somewhat supported in QDS. Files do show up,
      but it would require extra effort to support this syntax in the property editor.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kagro Kaj Grönholm
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes