Skip to content

Commit

Permalink
polish on regex parsing for uniforms -- supports are much more lenien…
Browse files Browse the repository at this point in the history
…t on spacing
  • Loading branch information
Amorano committed Feb 6, 2025
1 parent 19ad61a commit e12d5fd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ Please consider sponsoring me if you enjoy the results of my work, code or docum

## UPDATES

**2024/02/05** @1.1.02:
* polish on regex parsing for uniforms -- supports are much more lenient on spacing

**2024/02/05** @1.1.0:
* fixed value not updating when uniforms set to 0.0 [issue #4](https://github.com/Amorano/Jovi_GLSL/issues/4#issuecomment-2638367429)

Expand Down
2 changes: 1 addition & 1 deletion core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CompileException(Exception): pass
# === GLOBAL ===
# ==============================================================================

RE_VARIABLE = re.compile(r"^uniform\s+(\w+)\s+(\w+);\s*(?:\/\/\s*([^;|]*))?\s*(?:;\s*([^;|]*))?\s*(?:;\s*([^;|]*))?\s*(?:;\s*([^;|]*))?\s*(?:;\s*([^;|]*))?\s*(?:\|\s*(.*))?$", re.MULTILINE)
RE_VARIABLE = re.compile(r"^\s*uniform\s+(\w+)\s+(\w+)\s*;\s*(?:\/\/\s*([^;|]*))?(?:\s*;\s*([^;|]*))?(?:\s*;\s*([^;|]*))?(?:\s*;\s*([^;|]*))?(?:\s*;\s*([^;|]*))?(?:\s*\|[\t\f ]*([^\r\n]*))?$", re.MULTILINE)

IMAGE_SIZE_DEFAULT: int = 512
IMAGE_SIZE_MIN: int = 64
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "jovi_glsl"
description = "ComfyUI Nodes that integrate GLSL shader support."
version = "1.1.0"
version = "1.1.02"
license = { file = "LICENSE" }
readme = "README.md"
authors = [{ name = "Alexander G. Morano", email = "[email protected]" }]
Expand Down

0 comments on commit e12d5fd

Please sign in to comment.