Skip to content

GLTF: Add export_get_property_list to GLTFDocumentExtension#113247

Open
aaronfranke wants to merge 1 commit intogodotengine:masterfrom
aaronfranke:gltf-property-list
Open

GLTF: Add export_get_property_list to GLTFDocumentExtension#113247
aaronfranke wants to merge 1 commit intogodotengine:masterfrom
aaronfranke:gltf-property-list

Conversation

@aaronfranke
Copy link
Copy Markdown
Member

@aaronfranke aaronfranke commented Nov 27, 2025

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.

Copy link
Copy Markdown
Contributor

@lyuma lyuma left a comment

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Ready for review

Development

Successfully merging this pull request may close these issues.

2 participants