Skip to content

Conversation

@deboisj
Copy link
Collaborator

@deboisj deboisj commented Dec 3, 2025

  • Prevent component overwrite.
  • Enfore valid tf identifiers for component naming
  • Show the numbers of impacted layers on component save in the LE badge.

QWidget& _widget;
};

class TfValidIdentifierValidator : public QValidator
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to call it with Tf prefix? At first I thought it was a pixar class.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Myeah the idea was to make it clear it's a "tf valid identifier"... "valid identifier" on its own could mean anything i guess

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just confusing because I expect classes and functions beginning with Tf, Sdf, Usd to be Pixar stuff, but not very important.

pierrebai-adsk
pierrebai-adsk previously approved these changes Dec 3, 2025
Copy link
Collaborator

@pierrebai-adsk pierrebai-adsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things, nothing blocking.

pierrebai-adsk
pierrebai-adsk previously approved these changes Dec 3, 2025
@deboisj
Copy link
Collaborator Author

deboisj commented Dec 4, 2025

pr-build

std::filesystem::path location = { _locationEdit->text().toStdString() };
location.append(_nameEdit->text().toStdString());

if (std::filesystem::exists(location) && !std::filesystem::is_empty(location)) {
Copy link
Collaborator

@seando-adsk seando-adsk Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MayaUsd isn't C++17 because we have to support older versions of Maya. So you cannot use filesystem. Instead use gulrak. See other files for examples.

(cherry picked from commit e5b085ba5a35e1ee8c0476a78d62c69602390fca)
@deboisj deboisj assigned deboisj and unassigned deboisj Dec 4, 2025
Comment on lines 77 to 82
if (MSVC)
target_compile_definitions(${PROJECT_NAME}
PRIVATE
QT_NO_FLOAT16_OPERATORS
)
endif()
Copy link
Collaborator

@antonkhelou antonkhelou Dec 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How exactly does this solve the problem? I think we should make this condition more specific to 2023 only.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see https://github.com/qt/qtbase/blob/dev/dist/changes-5.13.1

   * [QTBUG-72073] Added the QT_NO_FLOAT16_OPERATORS macro in order to work
     around a Microsoft <= VS2017 compiler bug that is exposed when using
     std::bitset along with any Qt header that includes <qfloat16.h>.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, i can test for the MSVC version i guess

@deboisj deboisj assigned deboisj and unassigned deboisj Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants