Skip to content

Expose 'Reimport' on right-click context menu in the FileSystem panel #6320

Closed
godotengine/godot
#75137
@dogboydog

Description

Describe the project you are working on

A 2D adventure game which uses importer plugins to generate Godot scenes and resources

Describe the problem or limitation you are having in your project

When I'm working with import plugins that generate Godot scenes and resources (like vnen's Tiled importer among other custom plugins), sometimes I want to force a reimport to regenerate them. This could be because I'm iterating on the import code or because the generated files got into a bad state. Often I have the generated scene open in the editor and I want to reimport and reload the scene. So selecting the resource under Filesystem, then going to the import tab, then clicking reimport feels like an avoidable bit of navigation that could be sped up with a context menu item.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Right clicking the resource and clicking reimport cuts out navigation to different tabs. I'd be able to reimport my resources in two clicks in quick succession

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

When the user right clicks an importable resource, "Reimport" would appear in the right click menu, which the user could click to trigger a reimport without changing the current "Import As" setting.

If this enhancement will not be used often, can it be worked around with a few lines of script?

I tried searching but I didn't find a way for a plugin to add entries to Filesystem's right-click menu

Is there a reason why this should be core and not an add-on in the asset library?

This is to speed up a workflow and I'm not sure how to implement it as an add-on.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions