Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable quick preview of materials on 3D meshes when dragging them over the 3D view. #11501

Open
TheConceptBoy opened this issue Jan 5, 2025 · 2 comments

Comments

@TheConceptBoy
Copy link

Describe the project you are working on

Option to disable the material preview when dragging and dropping

Describe the problem or limitation you are having in your project

When dragging a material from the file system on the left to the material slot on the right, it causes a significant lag (not godot's fault but my computer) because it has to load everything for previewing that material on that mesh. While cool. I don't want this because sometimes on a 2k or 4k texture the lag is so significant I have to sit there for 15 seconds holding the mouse because if I let go of it, it'll apply that material on god knows what.

It is especially bad when the mouse travels over multiple meshes before reaching the inspector.
I appreciate the notion but being able to disable this behavior would be appreciated.

Image
Image

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

Option in Engine settings or project settings

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

Checkbox

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

Set once and forget

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

It's an engine feature.

@Calinou
Copy link
Member

Calinou commented Jan 6, 2025

We can fix this by not detecting the textures as used in 3D until the drag-and-drop operation is completed. This means they won't be reimported and therefore won't incur any extra loading time - instead, this delay would be moved to when you release the mouse button to confirm the operation.

As a workaround, when drag-and-dropping from the FileSystem dock to the inspector, move the mouse over the top/bottom of the editor instead of passing through the 3D editor viewport.

@TheConceptBoy
Copy link
Author

Some folks have also told me this is the reason they moved their inspector to the left side, so it's right next to the file system and avoid having the mouse move over the 3D viewport. But being able to disable this feature entirely would be nice even if it didn't lag. It also only deposits the material into override instead of mesh material slots.

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

No branches or pull requests

2 participants