Skip to content

Commit

Permalink
Merge pull request #146 from BenjaTK/fixes
Browse files Browse the repository at this point in the history
Fix ThresholdVisualizer not working with modifiers
  • Loading branch information
BenjaTK authored Jul 26, 2024
2 parents e6a6fc2 + a75a0e0 commit 05db76d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions addons/gaea/editor/inspector_plugin.gd
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ func _parse_begin(object: Object) -> void:
if not object.get("noise"):
return

if not object.get("threshold"):
return

if not object.get("min") and object.get("max"):
if not object.get("min") and not object.get("max"):
return
elif object is NoiseGeneratorData:
if not object.settings:
Expand Down
4 changes: 1 addition & 3 deletions addons/gaea/editor/threshold_visualizer.gd
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ func update() -> void:


func _is_in_threshold(value: float) -> bool:
if object.get("threshold"):
return value > object.get("threshold")
elif object.get("max") and object.get("min"):
if object.get("max") and object.get("min"):
return value >= object.get("min") and value <= object.get("max")
return false

0 comments on commit 05db76d

Please sign in to comment.