| 1757 | |
| 1758 | #ifdef TOOLS_ENABLED |
| 1759 | void Object::editor_set_section_unfold(const String &p_section, bool p_unfolded, bool p_initializing) { |
| 1760 | if (!p_initializing) { |
| 1761 | set_edited(true); |
| 1762 | } |
| 1763 | |
| 1764 | if (p_unfolded) { |
| 1765 | editor_section_folding.insert(p_section); |
| 1766 | } else { |
| 1767 | editor_section_folding.erase(p_section); |
| 1768 | } |
| 1769 | } |
| 1770 | |
| 1771 | bool Object::editor_is_section_unfolded(const String &p_section) { |
| 1772 | return editor_section_folding.has(p_section); |