Skip to content

TransformControls: Make gizmo colors configurable.#31262

Merged
Mugen87 merged 2 commits intomrdoob:devfrom
Mugen87:dev3
Jun 16, 2025
Merged

TransformControls: Make gizmo colors configurable.#31262
Mugen87 merged 2 commits intomrdoob:devfrom
Mugen87:dev3

Conversation

@Mugen87
Copy link
Copy Markdown
Collaborator

@Mugen87 Mugen87 commented Jun 14, 2025

Fixed #31257.

Description

The PR makes the hardwired gizmo colors in TransformControls configurable with a setColors() method.

I do not fully understand why certain gizmo materials were cloned. For example the translate gizmo has cloned its transparent materials but the scale gizmo not. Currently, this looks arbitrary to me so removing all clones makes the code more consistent.

@Mugen87 Mugen87 modified the milestone: r178 Jun 16, 2025
@Mugen87 Mugen87 merged commit f1e0313 into mrdoob:dev Jun 16, 2025
11 checks passed
@sweissbach
Copy link
Copy Markdown

@Mugen87 Thank you very much!

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.

Transform Control Colors

2 participants