You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #82916 from jsjtxietian/update-scene-tree-tooltip-after-editor-description-chnage
Support updating tooltip immediately after editor description change
This commit is contained in:
@@ -2311,11 +2311,7 @@ void Node::set_editor_description(const String &p_editor_description) {
|
||||
}
|
||||
|
||||
data.editor_description = p_editor_description;
|
||||
|
||||
if (Engine::get_singleton()->is_editor_hint() && is_inside_tree()) {
|
||||
// Update tree so the tooltip in the Scene tree dock is also updated in the editor.
|
||||
get_tree()->tree_changed();
|
||||
}
|
||||
emit_signal(SNAME("editor_description_changed"), this);
|
||||
}
|
||||
|
||||
String Node::get_editor_description() const {
|
||||
@@ -3536,6 +3532,7 @@ void Node::_bind_methods() {
|
||||
|
||||
ADD_SIGNAL(MethodInfo("child_order_changed"));
|
||||
ADD_SIGNAL(MethodInfo("replacing_by", PropertyInfo(Variant::OBJECT, "node", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT, "Node")));
|
||||
ADD_SIGNAL(MethodInfo("editor_description_changed", PropertyInfo(Variant::OBJECT, "node", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_DEFAULT, "Node")));
|
||||
|
||||
ADD_PROPERTY(PropertyInfo(Variant::STRING_NAME, "name", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NONE), "set_name", "get_name");
|
||||
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "unique_name_in_owner", PROPERTY_HINT_NONE, "", PROPERTY_USAGE_NO_EDITOR), "set_unique_name_in_owner", "is_unique_name_in_owner");
|
||||
|
||||
Reference in New Issue
Block a user