Skip to content

GLTF: Add export_get_property_list to GLTFDocumentExtension#113247

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
aaronfranke:gltf-property-list
Apr 13, 2026
Merged

GLTF: Add export_get_property_list to GLTFDocumentExtension#113247
Repiteo merged 1 commit into
godotengine:masterfrom
aaronfranke:gltf-property-list

Conversation

@aaronfranke

@aaronfranke aaronfranke commented Nov 27, 2025

Copy link
Copy Markdown
Member

This PR adds a new callback method that runs before the entire export process begins, which returns the PropertyInfo list of the properties relevant for that class. This allows extensions to provide context-sensitive options without cluttering the menu.

For example, PR #112866 uses this feature to show this dropdown menu when there are MultiMeshInstance3D nodes in the scene, but hide it when none exist in the scene:

514941182-2bc8c35b-8f34-4321-a455-69370ea758e9

I also fixed a bug where the extension name wasn't considering the GDScript class name when it should. I also removed the call to capitalize since it actually makes no difference since the inspector already calls capitalize.

@lyuma lyuma 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.

I think it looks fine, but probably needs consensus at the next meeting just to make sure we're all happy with moving forward.

Basically given that the old system was already shipped in Godot, I want to weigh changing this against keeping the usual property list system that is already in place.

@aaronfranke aaronfranke modified the milestones: 4.6, 4.7 Dec 7, 2025
@aaronfranke aaronfranke requested a review from a team as a code owner February 26, 2026 03:04
@aaronfranke aaronfranke requested review from fire and lyuma April 11, 2026 18:44
@Repiteo Repiteo merged commit a4dfadd into godotengine:master Apr 13, 2026
20 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for review to Done in Asset Pipeline Issue Triage Apr 13, 2026
@Repiteo

Repiteo commented Apr 13, 2026

Copy link
Copy Markdown
Contributor

Thanks!

@aaronfranke aaronfranke deleted the gltf-property-list branch April 13, 2026 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

5 participants