Procházet zdrojové kódy

Fixed crash in Vector3Prop

Ivan Safrin před 12 roky
rodič
revize
e2d514f976
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      IDE/Contents/Source/PolycodeProps.cpp

+ 4 - 0
IDE/Contents/Source/PolycodeProps.cpp

@@ -371,6 +371,10 @@ void ButtonProp::setPropWidth(Number width) {
 
 
 Vector3Prop::Vector3Prop(String caption) : PropProp(caption, "Vector3") {
 Vector3Prop::Vector3Prop(String caption) : PropProp(caption, "Vector3") {
     
     
+    xInput = NULL;
+    yInput = NULL;
+    zInput = NULL;
+    
 	labelX = new UILabel("X:", 11);
 	labelX = new UILabel("X:", 11);
 	labelX->color.a = 1.0;
 	labelX->color.a = 1.0;
 	propContents->addChild(labelX);
 	propContents->addChild(labelX);