فهرست منبع

Float/int fields now properly clamp values reported by events to their supported range (if any)

BearishSun 9 سال پیش
والد
کامیت
59cf546be9
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      Source/BansheeEditor/Source/BsGUIFloatField.cpp
  2. 1 1
      Source/BansheeEditor/Source/BsGUIIntField.cpp

+ 1 - 1
Source/BansheeEditor/Source/BsGUIFloatField.cpp

@@ -165,7 +165,7 @@ namespace BansheeEngine
 		setValue(value);
 
 		if(triggerEvent)
-			onValueChanged(value);
+			onValueChanged(mValue);
 	}
 
 	const String& GUIFloatField::getGUITypeName()

+ 1 - 1
Source/BansheeEditor/Source/BsGUIIntField.cpp

@@ -191,7 +191,7 @@ namespace BansheeEngine
 		setValue(value);
 
 		if (triggerEvent)
-			onValueChanged(value);
+			onValueChanged(mValue);
 	}
 
 	const String& GUIIntField::getGUITypeName()