You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v4.0.alpha.custom_build [e75bd53] (local build July 1st 2022)
System information
Windows 10, AMD Radeon RX 5500 XT
Issue description
When creating a Sampler2D Global Uniform, it provides a meni for "New TextureSubclass", so if in example i create a GradientTexture from there, it will work as expected while the editor is open, however ProjectSettings will not store it in the project settings, what it stores is just the filepath to the resource, because this resource is anonimous it simply stores an empty string, and as a result the global uniform fails to be loaded in the next run and simply ignored. https://i.imgur.com/KvvuPii.png
As a workaround to this issue, the solution is to first store the new texture resource to a file and then Load it from the Global Uniforms tab in the project settings: https://i.imgur.com/FcmjOay.png
Steps to reproduce
Open ProjectSettings Dialogs, navigate to the Shader Globals tab, and create a new global of type "Sampler2D" and press Add
Should look something like this: https://i.imgur.com/oK4tbwL.png
5A. Save the current scene to make sure Project Settings was stored, then kill and relaunch the Editor, and navigate again to the Shader Globals tab on Project Settings dialog
5B. After following the first 4 steps you can also try the following: right click on the resource and select Save and assign a filepath, then save the current scene, close, and relaunch the editor. Then navigate again to the Shader Globals tab in Project Settings dialog
Expected result
A alternative: "local to project" resource is stored in project settings and saved and loaded
B alternative: when saving the project settings it detects an orphan resource has been assigned and shows a warning to the user asking him to store it into a file
C alternative: completely remove the New Resource and Make Unique options in the menu when assigning a resource and only give options for Load and Quick Load
C neighterway: if a resource is saved from the project setting window (like described in 5B reproduction steps) then store the path to the file just created instead of require to Load it again
Actual result
When navigating again to the Shader Globals tab in Project Settings dialog the global uniform is totally removed like if never added in first place, and any shader referencing them is failing to compile because of missing global uniform https://i.imgur.com/eZRbEc8.png
Minimal reproduction project
This can be reproduced on any empty project just following the steps (and the result would be the same as uploading an empty project file)
The text was updated successfully, but these errors were encountered:
Godot version
v4.0.alpha.custom_build [e75bd53] (local build July 1st 2022)
System information
Windows 10, AMD Radeon RX 5500 XT
Issue description
When creating a Sampler2D Global Uniform, it provides a meni for "New TextureSubclass", so if in example i create a GradientTexture from there, it will work as expected while the editor is open, however ProjectSettings will not store it in the project settings, what it stores is just the filepath to the resource, because this resource is anonimous it simply stores an empty string, and as a result the global uniform fails to be loaded in the next run and simply ignored.
https://i.imgur.com/KvvuPii.png
As a workaround to this issue, the solution is to first store the new texture resource to a file and then Load it from the Global Uniforms tab in the project settings:
https://i.imgur.com/FcmjOay.png
Steps to reproduce
https://i.imgur.com/bErMXpa.png
https://i.imgur.com/3zvABqB.png
https://i.imgur.com/oK4tbwL.png
5A. Save the current scene to make sure Project Settings was stored, then kill and relaunch the Editor, and navigate again to the Shader Globals tab on Project Settings dialog
5B. After following the first 4 steps you can also try the following: right click on the resource and select Save and assign a filepath, then save the current scene, close, and relaunch the editor. Then navigate again to the Shader Globals tab in Project Settings dialog
Expected result
A alternative: "local to project" resource is stored in project settings and saved and loaded
B alternative: when saving the project settings it detects an orphan resource has been assigned and shows a warning to the user asking him to store it into a file
C alternative: completely remove the New Resource and Make Unique options in the menu when assigning a resource and only give options for Load and Quick Load
C neighterway: if a resource is saved from the project setting window (like described in 5B reproduction steps) then store the path to the file just created instead of require to Load it again
Actual result
When navigating again to the Shader Globals tab in Project Settings dialog the global uniform is totally removed like if never added in first place, and any shader referencing them is failing to compile because of missing global uniform
https://i.imgur.com/eZRbEc8.png
Minimal reproduction project
This can be reproduced on any empty project just following the steps (and the result would be the same as uploading an empty project file)
The text was updated successfully, but these errors were encountered: