mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Store panels and docks singletons in their own classes
This commit is contained in:
parent
8fc0dd9997
commit
aa1102fc53
36 changed files with 228 additions and 213 deletions
|
|
@ -861,10 +861,10 @@ String EditorProperty::get_tooltip_text() const {
|
|||
void EditorProperty::menu_option(int p_option) {
|
||||
switch (p_option) {
|
||||
case MENU_COPY_PROPERTY: {
|
||||
EditorNode::get_singleton()->get_inspector()->set_property_clipboard(object->get(property));
|
||||
InspectorDock::get_inspector_singleton()->set_property_clipboard(object->get(property));
|
||||
} break;
|
||||
case MENU_PASTE_PROPERTY: {
|
||||
emit_changed(property, EditorNode::get_singleton()->get_inspector()->get_property_clipboard());
|
||||
emit_changed(property, InspectorDock::get_inspector_singleton()->get_property_clipboard());
|
||||
} break;
|
||||
case MENU_COPY_PROPERTY_PATH: {
|
||||
DisplayServer::get_singleton()->clipboard_set(property);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue