From 031a4453684c75e2b5082aa39b8256f88faf3158 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 16 May 2018 08:04:46 -0300 Subject: [PATCH] Add note about color picker deferred initialization --- scene/gui/color_picker.cpp | 3 +++ 1 file changed, 3 insertions(+) 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;