|
@@ -759,6 +759,9 @@ void ColorPickerButton::_bind_methods() {
|
|
|
|
|
|
ColorPickerButton::ColorPickerButton() {
|
|
ColorPickerButton::ColorPickerButton() {
|
|
|
|
|
|
|
|
+ //Initialization is now done deferred
|
|
|
|
+ //this improves performance in the inspector as the color picker
|
|
|
|
+ //can be expensive to initialize
|
|
picker = NULL;
|
|
picker = NULL;
|
|
popup = NULL;
|
|
popup = NULL;
|
|
edit_alpha = true;
|
|
edit_alpha = true;
|