|
@@ -47,11 +47,7 @@ class TextureRect;
|
|
|
|
|
|
class EditorPropertyRevert {
|
|
class EditorPropertyRevert {
|
|
public:
|
|
public:
|
|
- static bool get_instantiated_node_original_property(Node *p_node, const StringName &p_prop, Variant &value, bool p_check_class_default = true);
|
|
|
|
- static bool is_node_property_different(Node *p_node, const Variant &p_current, const Variant &p_orig);
|
|
|
|
- static bool is_property_value_different(const Variant &p_a, const Variant &p_b);
|
|
|
|
static Variant get_property_revert_value(Object *p_object, const StringName &p_property, bool *r_is_valid);
|
|
static Variant get_property_revert_value(Object *p_object, const StringName &p_property, bool *r_is_valid);
|
|
-
|
|
|
|
static bool can_property_revert(Object *p_object, const StringName &p_property, const Variant *p_custom_current_value = nullptr);
|
|
static bool can_property_revert(Object *p_object, const StringName &p_property, const Variant *p_custom_current_value = nullptr);
|
|
};
|
|
};
|
|
|
|
|
|
@@ -331,7 +327,7 @@ class EditorInspectorArray : public EditorInspectorSection {
|
|
AcceptDialog *resize_dialog = nullptr;
|
|
AcceptDialog *resize_dialog = nullptr;
|
|
SpinBox *new_size_spin_box = nullptr;
|
|
SpinBox *new_size_spin_box = nullptr;
|
|
|
|
|
|
- // Pagination
|
|
|
|
|
|
+ // Pagination.
|
|
int page_length = 5;
|
|
int page_length = 5;
|
|
int page = 0;
|
|
int page = 0;
|
|
int max_page = 0;
|
|
int max_page = 0;
|
|
@@ -495,7 +491,7 @@ class EditorInspector : public ScrollContainer {
|
|
|
|
|
|
HashMap<ObjectID, int> scroll_cache;
|
|
HashMap<ObjectID, int> scroll_cache;
|
|
|
|
|
|
- String property_prefix; //used for sectioned inspector
|
|
|
|
|
|
+ String property_prefix; // Used for sectioned inspector.
|
|
String object_class;
|
|
String object_class;
|
|
Variant property_clipboard;
|
|
Variant property_clipboard;
|
|
|
|
|