mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 11:28:17 -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:
|
if value is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if propDataType != OG.PROP_FLOAT:
|
||||||
|
value = float(value)
|
||||||
|
|
||||||
propUI = ObjectPropUISlider(self.propsPane, key, value, propRange[OG.RANGE_MIN], propRange[OG.RANGE_MAX])
|
propUI = ObjectPropUISlider(self.propsPane, key, value, propRange[OG.RANGE_MIN], propRange[OG.RANGE_MAX])
|
||||||
sizer.Add(propUI)
|
sizer.Add(propUI)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user