浏览代码

Fix incorrect word block colors in the inspector tooltip

Yuri Roubinsky 4 年之前
父节点
当前提交
33e0b4b60d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      editor/editor_inspector.cpp

+ 2 - 2
editor/editor_inspector.cpp

@@ -887,7 +887,7 @@ Control *EditorProperty::make_custom_tooltip(const String &p_text) const {
 				text += "\n" + property_doc;
 			}
 		}
-		help_bit->set_text(text);
+		help_bit->call_deferred(SNAME("set_text"), text); //hack so it uses proper theme once inside scene
 	}
 
 	return help_bit;
@@ -1102,7 +1102,7 @@ Control *EditorInspectorCategory::make_custom_tooltip(const String &p_text) cons
 				text += "\n" + property_doc;
 			}
 		}
-		help_bit->set_text(text); //hack so it uses proper theme once inside scene
+		help_bit->call_deferred(SNAME("set_text"), text); //hack so it uses proper theme once inside scene
 	}
 
 	return help_bit;