Skip to content

Remove Redundant pm.parent Call in createGhostCtl to Fix Error with mgear.pymaya#467

Merged
miquelcampos merged 1 commit intomgear-dev:masterfrom
yamahigashi:master
Mar 4, 2025
Merged

Remove Redundant pm.parent Call in createGhostCtl to Fix Error with mgear.pymaya#467
miquelcampos merged 1 commit intomgear-dev:masterfrom
yamahigashi:master

Conversation

@yamahigashi
Copy link
Copy Markdown
Contributor

Description of Changes

This PR removes an unnecessary pm.parent(shape, newCtl, r=True, s=True) call in the createGhostCtl function. Previously, importing pymel.core as pm masked the issue because there was no error, but switching to import mgear.pymaya as pm causes an error on this redundant parent call. Since the second pm.parent is not needed, it has been removed for clarity and compatibility.

Testing Done

Confirmed that removing the redundant call does not affect the final hierarchy or shape assignment.

Related Issue(s)

Please link the related issues.

@miquelcampos miquelcampos self-assigned this Feb 20, 2025
@miquelcampos
Copy link
Copy Markdown
Member

@yamahigashi thanks for the PR!

@miquelcampos miquelcampos merged commit a100235 into mgear-dev:master Mar 4, 2025
@github-project-automation github-project-automation bot moved this from WIP to 4.2.x in mGear DEV Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 4.2.x

Development

Successfully merging this pull request may close these issues.

2 participants