-
-
Notifications
You must be signed in to change notification settings - Fork 22k
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
Shader menu keeps closing with every change. #88564
Comments
Same as #81481 |
Changing Node3D properties such as rotation edit mode also causes the materials to fold but it does not fold Mesh resource of MeshInstance3D but it does collapse the Material (this time StandardMaterial3D). So it's not just VisualShader related. If you have both material override and material overlay occupied then you can't have both open at the same time if you set a visual shader there. This line in particular starts the collapse: godot/editor/editor_inspector.cpp Line 2684 in fb10e67
Inside that method it's this particular part it seems (commenting it out doesn't cause the collapse): https://github.com/godotengine/godot/blob/fb10e67fefb85af3b8f5abd30db561588d8456c6/editor/editor_inspector.cpp#L3412C1-L3414C3 This comment makes me wonder:
Maybe the clear here could go away as the comment suggest and be only at place where it's supposed to be? EDIT: |
The inspector update is caused by this line: godot/scene/resources/visual_shader.cpp Line 2742 in 1aab6e9
Visual shader will update the shader code with every change, which causes the shader to do emit_changed() , which makes ShaderMaterial reload its properties:godot/scene/resources/material.cpp Lines 447 to 449 in 1aab6e9
|
I understand that this is called and I'm out of my depth here but I don't think this is the main problem here. EDIT: This is beyond so hopefully someone else picks it up. |
|
Tested versions
4.2.1
System information
Windows 11 - Vulkan - Nvidia RTX 4070 - intel i5 13600KF
Issue description
Shader menu keeps closing on any change, check the video to see.
I'd expect the menu would stay open.
I did not label this just for visual shader since I don't know if there's some way to add stuff to this menu from gdshader too (?) so keeping it shader related in general.
Link: https://youtu.be/AlxfhCcsRAs (only first 10 seconds of the video are relevant, I then added gdshader just to show there's nothing else but I don't know if there can be only for clarity)
Steps to reproduce
Add a visual shader to a shader material and try changing some of its properties or use the MRP where it's all set up already. Follow the video below for better understanding.
Link: https://youtu.be/AlxfhCcsRAs (only first 10 seconds of the video are relevant, I then added gdshader just to show there's nothing else but I don't know if there can be only for clarity)
Minimal reproduction project (MRP)
ShaderMenuClosesMRP.zip
The text was updated successfully, but these errors were encountered: