Skip to content

Export custom attributes for point helpers and dummies (#1140) - #1162

Merged
deltakosh merged 1 commit into
BabylonJS:masterfrom
jay23606:pr-go-simple/1140
Nov 27, 2026
Merged

deltakosh merged 1 commit into
BabylonJS:masterfrom
jay23606:pr-go-simple/1140

Conversation

@jay23606

Copy link
Copy Markdown
Contributor

Fixes #1140 (part 1: point helpers / dummies / bones).

What changed: in exportNodeRec (3ds Max/Max2Babylon/Exporter/BabylonExporter.cs), the fallback branch that creates a dummy for a relevant node now also sets metadata from ExportExtraAttributes(maxGameNode, babylonScene). Point helpers and dummy objects reach this branch because the switch has no Helper case, so their custom attributes were never read. Meshes, lights and cameras already exported theirs and are unchanged. The fallback is used instead of ExportDummy itself so that the helper dummy created for a light with children does not duplicate the light's attributes.

Not addressed: request #2 in the issue (exporting array-valued custom attributes as full arrays) is a feature request and is not part of this change.

Tests: the 3ds Max exporter has no unit test project and CI only builds with msbuild, so no regression test was added. I did not build or run the exporter here: it needs the 3ds Max SDK, Windows and a licensed 3ds Max install, and I was not asked to install dependencies. Suggested manual check: add a custom attribute to a point helper and a dummy, export glTF/Babylon, and confirm metadata is present on the corresponding node.

Tests not run here: 3ds Max exporter build (requires the 3ds Max SDK and a licensed 3ds Max install), Runtime export of a point helper with custom attributes in 3ds Max, checking metadata is present in the glTF/Babylon output, Regression check that mesh, camera, and light metadata output is unchanged, Bone custom attribute export (not implemented; BabylonBone has no metadata field, so this needs a shared-entity change)

Fixes #1140

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@jay23606
jay23606 marked this pull request as ready for review November 26, 2026 15:35
Copilot AI balanced review requested due to automatic review settings November 26, 2026 15:35

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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@deltakosh deltakosh self-assigned this Nov 26, 2026

@deltakosh deltakosh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hello @jay23606,

Reviewed head d969a644.

The exporter change is scoped and correct: point-helper fallback dummy export now attaches custom attributes metadata through the existing ExportExtraAttributes path, without changing non-helper node behavior.

No actionable findings. Approving.

Thanks!

@deltakosh
deltakosh merged commit 73fa4a1 into BabylonJS:master Nov 27, 2026
10 checks passed
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.

3ds max custom attributes export issue

4 participants