Skip to content

Commit bf2f679

Browse files
committed
Fix support for negative numbers in live control properties
1 parent fc2c075 commit bf2f679

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
### Changed
1515
- Mouse position is only updated when pressing down
1616

17+
### Fixed
18+
- Negative numbers in live control properties
19+
1720
## [0.5.0] - 2025-07-03
1821

1922
### Added

shader_workshop/frag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def extract_control(line: str) -> Control | None:
107107
typ, name, com = m.group("type", "name", "com")
108108
ctl = _GL_TYPE_TO_CTL_CLS[typ](name)
109109
if com:
110-
for m in re.finditer(r"(?P<key>\w+)\s*:\s*(?P<val>[\d\.,]+)", com):
110+
for m in re.finditer(r"(?P<key>\w+)\s*:\s*(?P<val>[\d\.,-]+)", com):
111111
k, v = m.group("key", "val")
112112
if isinstance(ctl, ControlF32):
113113
v = float(v)

0 commit comments

Comments
 (0)