From 94743fade9455765b564e9ff5ca1ba8da12159c5 Mon Sep 17 00:00:00 2001 From: RUben Date: Wed, 27 Aug 2025 13:19:57 +0300 Subject: [PATCH] 250827 blender >4.4 compatibility fixed in NodeRelaxBrush.__init__ --- README.md | 12 ++++++------ __init__.py | 4 ++-- operators/node_relax_brush.py | 3 ++- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 19b108c..04239b9 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,22 @@ # NodeRelax-Blender-Addon -![demo GIF](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExNnFleHE4djd2NjFnZnY2NzR4dDdoZXlhZWZmdG93NzMxMGxoN3A4ZCZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/CqGyJl0CTl8GWuDNqU/giphy.gif) - Relax brush for nodes, helps to arrange nodes easier. Shortcut: Shift+R Watch the video for demo: https://youtu.be/QvNz3ON6e1I +Code refactored by [Spencer Magnusson](https://github.com/semagnum) + +## Changelog +- 250827 blender >4.4 compatibility fixed in NodeRelaxBrush.__init__ + ## How to use the brush Controls: - Shift + R: invoke relax brush - Left click: smooth nodes - Hold Shift: move nodes individually - Right click or Escape key: finish -- `[` to decrease brush size, `]` to increase it +- "[" to decrease brush size, "]" to increase it - -### aknowledgements -- Code refactored by [Spencer Magnusson](https://github.com/semagnum) diff --git a/__init__.py b/__init__.py index 4ea4ff4..001f964 100644 --- a/__init__.py +++ b/__init__.py @@ -20,8 +20,8 @@ "name": "Node Relax", "author": "Shahzod Boyhonov (Specoolar)", "description": "Tool for arranging nodes easier", - "blender": (2, 92, 0), - "version": (1, 0, 0), + "blender": (4, 4, 0), + "version": (1, 0, 1), "location": "Node Editor > Properties > Node Relax. Shortcut: Shift R", "category": "Node", } diff --git a/operators/node_relax_brush.py b/operators/node_relax_brush.py index 7777ca7..3d44614 100644 --- a/operators/node_relax_brush.py +++ b/operators/node_relax_brush.py @@ -39,7 +39,8 @@ class NodeRelaxBrush(bpy.types.Operator): bl_options = {"UNDO", "REGISTER"} - def __init__(self): + def __init__(self, *args, **kwargs): + super().__init__(*args, **kwargs) self.radius = 100 self.lmb = False self.delta = mathutils.Vector((0, 0))