Skip to content

Commit 521be11

Browse files
Merge pull request #78 from BrendanParmer/Blender-4.0-Breaking-Changes
Blender 4.0 breaking changes
2 parents 532ba17 + 2a9c545 commit 521be11

File tree

7 files changed

+410
-189
lines changed

7 files changed

+410
-189
lines changed

compositor/node_settings.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
("offset_y", ST.FLOAT),
415415
("space", ST.ENUM)],
416416

417-
'CompositorNodeStablize' : [("clip", ST.MOVIE_CLIP),
417+
'CompositorNodeStabilize' : [("clip", ST.MOVIE_CLIP),
418418
("filter_type", ST.ENUM),
419419
("invert", ST.BOOL)],
420420

@@ -425,5 +425,12 @@
425425

426426

427427
# LAYOUT
428-
'CompositorNodeSwitch' : [("check", ST.BOOL)]
428+
'CompositorNodeSwitch' : [("check", ST.BOOL)],
429+
430+
431+
# MISC
432+
'NodeFrame' : [],
433+
'NodeGroupInput' : [],
434+
'NodeGroupOutput' : [],
435+
'NodeReroute' : []
429436
}

geometry/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
if "bpy" in locals():
22
import importlib
3-
importlib.reload(node_tree)
43
importlib.reload(node_settings)
4+
importlib.reload(node_tree)
55
importlib.reload(operator)
66
importlib.reload(ui)
77
else:
8-
from . import node_tree
98
from . import node_settings
9+
from . import node_tree
1010
from . import operator
1111
from . import ui
1212

geometry/node_settings.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,5 +494,12 @@
494494
("pivot_axis", ST.ENUM)],
495495

496496
'FunctionNodeRotateEuler' : [("space", ST.ENUM),
497-
("type", ST.ENUM)]
497+
("type", ST.ENUM)],
498+
499+
# MISC
500+
'NodeFrame' : [],
501+
'NodeGroupInput' : [],
502+
'NodeGroupOutput' : [],
503+
'NodeReroute' : []
504+
498505
}

geometry/operator.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,10 @@ def _process_node_tree(self, node_tree: GeometryNodeTree,
118118
f"name = {str_to_py_str(node_tree.name)})\n"))
119119
self._write("\n")
120120

121+
if bpy.app.version >= (4, 0, 0):
122+
self._write(f"{inner}{nt_var}.is_modifier = {node_tree.is_modifier}\n")
123+
self._write(f"{inner}{nt_var}.is_tool = {node_tree.is_tool}\n")
124+
121125
#initialize nodes
122126
self._write(f"{inner}#initialize {nt_var} nodes\n")
123127

material/node_settings.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@
215215

216216
'ShaderNodeMapping' : [("vector_type", ST.ENUM)],
217217

218+
'ShaderNodeNormal' : [],
219+
218220
'ShaderNodeNormalMap' : [("space", ST.ENUM),
219221
("uv_map", ST.STRING)], #TODO
220222

@@ -269,5 +271,11 @@
269271
("filepath", ST.STRING),
270272
("mode", ST.ENUM),
271273
("script", ST.TEXT),
272-
("use_auto_update", ST.BOOL)]
274+
("use_auto_update", ST.BOOL)],
275+
276+
# MISC
277+
'NodeFrame' : [],
278+
'NodeGroupInput' : [],
279+
'NodeGroupOutput' : [],
280+
'NodeReroute' : []
273281
}

0 commit comments

Comments
 (0)