浏览代码

Merge pull request #91164 from Calinou/shader-globals-editor-allow-compressed-texture-array-types

Allow compressed texture array and cubemap types in shader globals editor
Rémi Verschelde 1 年之前
父节点
当前提交
0510191e49
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/shader_globals_editor.cpp

+ 2 - 2
editor/shader_globals_editor.cpp

@@ -219,7 +219,7 @@ protected:
 				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;
@@ -229,7 +229,7 @@ protected:
 				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;