Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-4089

materialdef files should not contain an absolute path to themselves

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Qt 3D Studio 2.7
    • Component/s: Infrastructure
    • Labels:
      None
    • Technical Risk:
      Normal
    • Commits:
      93157f5693d0b94c20e5e8b9bfdb1048491aa292

      Description

      For some weird reason materialdef files contain an absolute path to themselves. This makes them painful to share among several developers, as they'll appear modified again and again and again in any version control system solely by opening a project. This can amount to tens of files.

      => make this a relative path (or remove it altogether, the file's path is where you just read it from)

      note: in DocumentEditor.cpp, line 2158:

      const QFileInfo fileInfo(file);
      writeProperty(file, QStringLiteral("path"), fileInfo.absoluteFilePath());

        Attachments

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

          Activity

            People

            Assignee:
            tuliniemi Jere Tuliniemi
            Reporter:
            ub2000 u b
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes