diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-05-16 08:04:46 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-05-16 08:04:46 -0300 |
commit | 031a4453684c75e2b5082aa39b8256f88faf3158 (patch) | |
tree | 2b1c4084c4ef8655a2f3c704723dfca6b686c2c1 | |
parent | 66dc73f3ca5ba5f4ef191e23bcf89bdb073caf0d (diff) |
Add note about color picker deferred initialization
-rw-r--r-- | scene/gui/color_picker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/color_picker.cpp b/scene/gui/color_picker.cpp index 597ce33fea..34891832e2 100644 --- a/scene/gui/color_picker.cpp +++ b/scene/gui/color_picker.cpp @@ -759,6 +759,9 @@ void ColorPickerButton::_bind_methods() { ColorPickerButton::ColorPickerButton() { + //Initialization is now done deferred + //this improves performance in the inspector as the color picker + //can be expensive to initialize picker = NULL; popup = NULL; edit_alpha = true; |