瀏覽代碼

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()