Ver Fonte

Add note about color picker deferred initialization

Juan Linietsky há 7 anos atrás
pai
commit
031a445368
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      scene/gui/color_picker.cpp

+ 3 - 0
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;