You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Removed _change_notify
-For inspector refresh, the inspector now detects if a property change by polling a few times per second and then does update the control if so. This process is very cheap. -For property list refresh, a new signal (property_list_changed) was added to Object. _change_notify() is replaced by notify_property_list_changed() -Changed all objects using the old method to the signal, or just deleted the calls to _change_notify(<property>) since they are unnecesary now.
This commit is contained in:
@@ -98,7 +98,6 @@ void NinePatchRect::set_texture(const Ref<Texture2D> &p_tex) {
|
||||
*/
|
||||
minimum_size_changed();
|
||||
emit_signal("texture_changed");
|
||||
_change_notify("texture");
|
||||
}
|
||||
|
||||
Ref<Texture2D> NinePatchRect::get_texture() const {
|
||||
@@ -110,20 +109,6 @@ void NinePatchRect::set_patch_margin(Side p_side, int p_size) {
|
||||
margin[p_side] = p_size;
|
||||
update();
|
||||
minimum_size_changed();
|
||||
switch (p_side) {
|
||||
case SIDE_LEFT:
|
||||
_change_notify("patch_margin_left");
|
||||
break;
|
||||
case SIDE_TOP:
|
||||
_change_notify("patch_margin_top");
|
||||
break;
|
||||
case SIDE_RIGHT:
|
||||
_change_notify("patch_margin_right");
|
||||
break;
|
||||
case SIDE_BOTTOM:
|
||||
_change_notify("patch_margin_bottom");
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
int NinePatchRect::get_patch_margin(Side p_side) const {
|
||||
@@ -139,7 +124,6 @@ void NinePatchRect::set_region_rect(const Rect2 &p_region_rect) {
|
||||
region_rect = p_region_rect;
|
||||
|
||||
item_rect_changed();
|
||||
_change_notify("region_rect");
|
||||
}
|
||||
|
||||
Rect2 NinePatchRect::get_region_rect() const {
|
||||
|
||||
Reference in New Issue
Block a user