Skip to content

fix an error when generating diamond icon with pos offset#561

Merged
miquelcampos merged 1 commit intomgear-dev:masterfrom
sh-iino:fix-diamond-ctrl-with-pos-offset
Oct 12, 2025
Merged

fix an error when generating diamond icon with pos offset#561
miquelcampos merged 1 commit intomgear-dev:masterfrom
sh-iino:fix-diamond-ctrl-with-pos-offset

Conversation

@sh-iino
Copy link
Contributor

@sh-iino sh-iino commented Sep 26, 2025

Description of Changes

I changed the "bottom" variable in diamond() (mgear/core/icon.py) from a tuple to a maya vector.
Since "bottom" was not maya vector, the addition "bottom + pos_offset" failed in getPointArrayWithOffset function.

Testing Done

I checked the diamond icon can be successfully generated in a custom component by addCtl function with a position offset.

Related Issue(s)

no related issue

Since "bottom" was not the maya vector, "bottom + pos_offset" failed in getPointArrayWithOffset function.
@miquelcampos
Copy link
Member

@sh-iino Thanks for the PR! I will check it ASAP :)

@miquelcampos miquelcampos self-assigned this Sep 29, 2025
@miquelcampos miquelcampos added the bug Something isn't working label Sep 29, 2025
@github-project-automation github-project-automation bot moved this to To Do in mGear DEV Sep 29, 2025
@miquelcampos miquelcampos moved this from To Do to WIP in mGear DEV Sep 29, 2025
@miquelcampos miquelcampos merged commit 78d96a6 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
@sh-iino sh-iino deleted the fix-diamond-ctrl-with-pos-offset branch October 13, 2025 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: 5.2.0

Development

Successfully merging this pull request may close these issues.

2 participants