You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Merge pull request #59102 from rcorre/copy-project-config
This commit is contained in:
@@ -882,7 +882,7 @@ void EditorProperty::menu_option(int p_option) {
|
|||||||
emit_changed(property, InspectorDock::get_inspector_singleton()->get_property_clipboard());
|
emit_changed(property, InspectorDock::get_inspector_singleton()->get_property_clipboard());
|
||||||
} break;
|
} break;
|
||||||
case MENU_COPY_PROPERTY_PATH: {
|
case MENU_COPY_PROPERTY_PATH: {
|
||||||
DisplayServer::get_singleton()->clipboard_set(property);
|
DisplayServer::get_singleton()->clipboard_set(property_path);
|
||||||
} break;
|
} break;
|
||||||
case MENU_PIN_VALUE: {
|
case MENU_PIN_VALUE: {
|
||||||
emit_signal(SNAME("property_pinned"), property, !pinned);
|
emit_signal(SNAME("property_pinned"), property, !pinned);
|
||||||
@@ -2314,6 +2314,7 @@ void EditorInspector::_parse_added_editors(VBoxContainer *current_vbox, Ref<Edit
|
|||||||
if (F.properties.size() == 1) {
|
if (F.properties.size() == 1) {
|
||||||
//since it's one, associate:
|
//since it's one, associate:
|
||||||
ep->property = F.properties[0];
|
ep->property = F.properties[0];
|
||||||
|
ep->property_path = property_prefix + F.properties[0];
|
||||||
ep->property_usage = 0;
|
ep->property_usage = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2874,6 +2875,7 @@ void EditorInspector::update_tree() {
|
|||||||
if (F.properties.size() == 1) {
|
if (F.properties.size() == 1) {
|
||||||
//since it's one, associate:
|
//since it's one, associate:
|
||||||
ep->property = F.properties[0];
|
ep->property = F.properties[0];
|
||||||
|
ep->property_path = property_prefix + F.properties[0];
|
||||||
ep->property_usage = p.usage;
|
ep->property_usage = p.usage;
|
||||||
//and set label?
|
//and set label?
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,6 +68,7 @@ private:
|
|||||||
friend class EditorInspector;
|
friend class EditorInspector;
|
||||||
Object *object;
|
Object *object;
|
||||||
StringName property;
|
StringName property;
|
||||||
|
String property_path;
|
||||||
|
|
||||||
int property_usage;
|
int property_usage;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user