Skip to content

Allow underscores in rig_name property. #558

Merged
miquelcampos merged 2 commits intomgear-dev:masterfrom
timothyliu3d:5.0.7-dev
Oct 12, 2025
Merged

Allow underscores in rig_name property. #558
miquelcampos merged 2 commits intomgear-dev:masterfrom
timothyliu3d:5.0.7-dev

Conversation

@timothyliu3d
Copy link
Contributor

Description of Changes

Please clearly state what you have changed and why you made these changes.

Allow underscores in rig_name property.
Main guide settings tab now uses the updateLineEdit2 method, which ensures Maya-compatible names.
This PR is because mGear currently prohibits the use of the underscore character when trying to specify a name for the rig root, which is a very common delimiter. It is possible to bypass this by editing the attributes directly; but having it accessible to users in an official capacity via the GUI is preferred.

There is another commit: some minor fixes to incorrect type hints without introducing new imports.

Testing Done

Please describe the tests that you ran to verify your changes.

Tested with:

  • Maya 2026
  • mGear 5.0.7
  • EPIC Mannequin Template, Y-up

Able to build a rig with rig root named "my_rig_root_with_underscores".
Custom step instance's .mgear_run.model property returns "my_rig_root_with_underscores" as expected.
Guide template "EPIC Mannequin Template, Y-up" seems to build correctly.
Have not tested with other tools in suite.

Related Issue(s)

Please link the related issues.
N/A.

Done by changing its update method from `HelperSlots.updateLineEdit()` to `HelperSlots.updateLineEdit2`.
@miquelcampos miquelcampos self-assigned this Sep 3, 2025
@github-project-automation github-project-automation bot moved this to To Do in mGear DEV Sep 3, 2025
@miquelcampos
Copy link
Member

@timothyliu3d thanks for the PR :)

@miquelcampos miquelcampos moved this from To Do to WIP in mGear DEV Sep 29, 2025
@miquelcampos miquelcampos merged commit 80ea926 into mgear-dev:master Oct 12, 2025
@github-project-automation github-project-automation bot moved this from WIP to 5.2.0 in mGear DEV Oct 12, 2025
@timothyliu3d timothyliu3d deleted the 5.0.7-dev branch October 16, 2025 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 5.2.0

Development

Successfully merging this pull request may close these issues.

2 participants