Skip to content

Plat 11963 modular instances dont move - #73

Merged
Ikreb1 merged 5 commits into
mainfrom
PLAT-11963-modular-instances-dont-move
Aug 31, 2026
Merged

Plat 11963 modular instances dont move#73
Ikreb1 merged 5 commits into
mainfrom
PLAT-11963-modular-instances-dont-move

Conversation

@Ikreb1

@Ikreb1 Ikreb1 commented Aug 26, 2026

Copy link
Copy Markdown
Member

fix for https://fenriscreations.atlassian.net/browse/PLAT-11963 which forgot to move the instances

also snuck in evechildpartdata chaining to the root object so graphite doesnt complain about missing name attribute

Copilot AI lite review requested due to automatic review settings August 26, 2026 16:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes PLAT-11963 by ensuring modular-part transform edits propagate to instanced-mesh children, and updates Blue exposure so EveChildPartData chains to its base (avoiding missing name complaints).

Changes:

  • Update EveModularObjectModifier::SetTransform() to also update transforms for EveChildInstancedMeshes instances with the edited partTag.
  • Add utilities to EveInstancedMeshManager::StaticPerInstanceData (SetTransform() / ToMatrix()) and refactor instanced-mesh code to use them.
  • Add a Blue-exposed Python API GetInstancesTransforms(meshId) for inspecting per-instance SRT transforms.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
trinity/Eve/SpaceObject/Children/EveModularObjectModifier.cpp Propagates part transform changes into instanced mesh instances.
trinity/Eve/SpaceObject/Children/EveChildPartData_Blue.cpp Chains Blue exposure to EveSpaceObjectChild to inherit base attributes (e.g., name).
trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.h Declares new instance-transform setter and Python inspection API.
trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.cpp Implements partTag-based instance transform updates; adds transform inspection; refactors matrix handling.
trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes_Blue.cpp Exposes GetInstancesTransforms to Blue/Python.
trinity/Eve/EveInstancedMeshManager.h Adds StaticPerInstanceData helpers for transform conversion.
trinity/Eve/EveInstancedMeshManager.cpp Implements StaticPerInstanceData::SetTransform() and ToMatrix().
Suppressed comments (1)

trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.cpp:1078

  • wt is declared but no longer used after switching to ToMatrix(), which will trigger an unused-variable warning (and can break builds if warnings are treated as errors). Remove the variable.
			const auto& wt = mesh.instances[i].worldTransform;
			OverlayInstancePod& pod = ( *mesh.overlayPods )[i];

			Matrix local = mesh.instances[i].ToMatrix();

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.cpp Outdated
Comment thread trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.cpp
Comment thread trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.cpp
Comment thread trinity/Eve/EveInstancedMeshManager.h Outdated
Comment thread trinity/Eve/SpaceObject/Children/EveChildInstancedMeshes.h Outdated
filipppavlov
filipppavlov previously approved these changes Aug 27, 2026
@Ikreb1
Ikreb1 force-pushed the PLAT-11963-modular-instances-dont-move branch from e281f4f to 4d1835e Compare August 28, 2026 15:46
@Ikreb1
Ikreb1 merged commit d8cdf2e into main Aug 31, 2026
22 checks passed
@Ikreb1
Ikreb1 deleted the PLAT-11963-modular-instances-dont-move branch August 31, 2026 09:13
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.

4 participants