Ver Fonte

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

BearishSun há 9 anos atrás
pai
commit
59cf546be9

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