MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / copy_object_params

Method copy_object_params

editor/editor_data.cpp:296–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void EditorData::copy_object_params(Object *p_object) {
297 clipboard.clear();
298
299 List<PropertyInfo> pinfo;
300 p_object->get_property_list(&pinfo);
301
302 for (const PropertyInfo &E : pinfo) {
303 if (!(E.usage & PROPERTY_USAGE_EDITOR) || E.name == "script" || E.name == "scripts" || E.name == "resource_path") {
304 continue;
305 }
306
307 PropertyData pd;
308 pd.name = E.name;
309 pd.value = p_object->get(pd.name);
310 clipboard.push_back(pd);
311 }
312}
313
314void EditorData::get_editor_breakpoints(List<String> *p_breakpoints) {
315 for (int i = 0; i < editor_plugins.size(); i++) {

Callers 1

_menu_option_confirmMethod · 0.80

Calls 4

clearMethod · 0.45
get_property_listMethod · 0.45
getMethod · 0.45
push_backMethod · 0.45

Tested by 1

_menu_option_confirmMethod · 0.64