Skip to content

Commit

Permalink
Merge pull request #91164 from Calinou/shader-globals-editor-allow-co…
Browse files Browse the repository at this point in the history
…mpressed-texture-array-types

Allow compressed texture array and cubemap types in shader globals editor
  • Loading branch information
akien-mga committed Apr 26, 2024
2 parents ce539e5 + 73e4e7e commit 0510191
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/shader_globals_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class ShaderGlobalsEditorInterface : public Object {
case RS::GLOBAL_VAR_TYPE_SAMPLER2DARRAY: {
pinfo.type = Variant::OBJECT;
pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE;
pinfo.hint_string = "Texture2DArray";
pinfo.hint_string = "Texture2DArray,CompressedTexture2DArray";
} break;
case RS::GLOBAL_VAR_TYPE_SAMPLER3D: {
pinfo.type = Variant::OBJECT;
Expand All @@ -229,7 +229,7 @@ class ShaderGlobalsEditorInterface : public Object {
case RS::GLOBAL_VAR_TYPE_SAMPLERCUBE: {
pinfo.type = Variant::OBJECT;
pinfo.hint = PROPERTY_HINT_RESOURCE_TYPE;
pinfo.hint_string = "Cubemap";
pinfo.hint_string = "Cubemap,CompressedCubemap";
} break;
default: {
} break;
Expand Down

0 comments on commit 0510191

Please sign in to comment.