mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Made slider work with string value
This commit is contained in:
parent
671276fa6d
commit
0b04414091
@ -361,6 +361,9 @@ class ObjectPropertyUI(ScrolledPanel):
|
||||
if value is None:
|
||||
continue
|
||||
|
||||
if propDataType != OG.PROP_FLOAT:
|
||||
value = float(value)
|
||||
|
||||
propUI = ObjectPropUISlider(self.propsPane, key, value, propRange[OG.RANGE_MIN], propRange[OG.RANGE_MAX])
|
||||
sizer.Add(propUI)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user