Skip to content

Commit

Permalink
Fix float bug
Browse files Browse the repository at this point in the history
  • Loading branch information
NiceneNerd committed Apr 10, 2021
1 parent 9cfdfa4 commit 47cb11a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plasticity_ai/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION = "0.5.1"
VERSION = "0.5.2"

from sys import argv

Expand Down
2 changes: 1 addition & 1 deletion plasticity_ai/assets/scripts/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plasticity_ai/assets/src/js/Components.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class ParamInput extends Component {
break;
case "F32":
new_val = {
float: parseFloat($(`#${this.props.param}`).val())
Float: parseFloat($(`#${this.props.param}`).val())
};
break;
case "Vec3":
Expand Down
1 change: 1 addition & 0 deletions plasticity_ai/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def _to_param(self, obj) -> Parameter:
"Int": lambda p: int(p["Int"]),
"StringRef": lambda p: str(p["StringRef"]),
"F32": lambda p: float(p["F32"]),
"Float": lambda p: float(p["Float"]),
"String32": lambda p: oead.FixedSafeString32(str(p["String32"])),
"Bool": lambda p: bool(p["Bool"]),
"bool": lambda p: bool(p["Bool"]),
Expand Down

0 comments on commit 47cb11a

Please sign in to comment.