summaryrefslogtreecommitdiff
path: root/editor/editor_inspector.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-09-28 20:32:40 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-09-28 20:33:18 -0300
commitc83742ba86eadd03800369c3fb5b1c23f083c59e (patch)
tree3d5d27e0b2f661d01fe472af82b49b65d331120d /editor/editor_inspector.cpp
parent4db2db2d6b4cf82c19f4ea96258071f5682dd592 (diff)
-Lightmap and lightmap capture support for GLES2
-Added hint to not show some properties when running on low end gfx
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r--editor/editor_inspector.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp
index 49d9dca701..10fc15e468 100644
--- a/editor/editor_inspector.cpp
+++ b/editor/editor_inspector.cpp
@@ -1449,6 +1449,9 @@ void EditorInspector::update_tree() {
} else if (!(p.usage & PROPERTY_USAGE_EDITOR))
continue;
+ if (p.usage & PROPERTY_USAGE_HIGH_END_GFX && VS::get_singleton()->is_low_end())
+ continue; //do not show this property in low end gfx
+
if (p.name == "script" && (hide_script || bool(object->call("_hide_script_from_inspector")))) {
continue;
}