diff options
| author | Juan Linietsky | 2018-05-16 08:04:46 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-05-16 08:04:46 -0300 |
| commit | 031a4453684c75e2b5082aa39b8256f88faf3158 (patch) | |
| tree | 2b1c4084c4ef8655a2f3c704723dfca6b686c2c1 /scene/gui/color_picker.cpp | |
| parent | 66dc73f3ca5ba5f4ef191e23bcf89bdb073caf0d (diff) | |
| download | godot-031a4453684c75e2b5082aa39b8256f88faf3158.tar.gz godot-031a4453684c75e2b5082aa39b8256f88faf3158.tar.zst godot-031a4453684c75e2b5082aa39b8256f88faf3158.zip | |
Diffstat (limited to 'scene/gui/color_picker.cpp')
| -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 597ce33fe..34891832e 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; |
