浏览代码

Set tooltip to an empty string when clearing

Format


Remove string conversion
Joe Morton 6 年之前
父节点
当前提交
c017f3405e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      editor/editor_properties.cpp

+ 1 - 0
editor/editor_properties.cpp

@@ -2649,6 +2649,7 @@ void EditorPropertyResource::update_property() {
 	if (res == RES()) {
 		assign->set_icon(Ref<Texture>());
 		assign->set_text(TTR("[empty]"));
+		assign->set_tooltip("");
 	} else {
 
 		assign->set_icon(EditorNode::get_singleton()->get_object_icon(res.operator->(), "Node"));