Skip to content

Blender 4.0 breaking changes #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jan 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions compositor/node_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
("offset_y", ST.FLOAT),
("space", ST.ENUM)],

'CompositorNodeStablize' : [("clip", ST.MOVIE_CLIP),
'CompositorNodeStabilize' : [("clip", ST.MOVIE_CLIP),
("filter_type", ST.ENUM),
("invert", ST.BOOL)],

Expand All @@ -425,5 +425,12 @@


# LAYOUT
'CompositorNodeSwitch' : [("check", ST.BOOL)]
'CompositorNodeSwitch' : [("check", ST.BOOL)],


# MISC
'NodeFrame' : [],
'NodeGroupInput' : [],
'NodeGroupOutput' : [],
'NodeReroute' : []
}
4 changes: 2 additions & 2 deletions geometry/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
if "bpy" in locals():
import importlib
importlib.reload(node_tree)
importlib.reload(node_settings)
importlib.reload(node_tree)
importlib.reload(operator)
importlib.reload(ui)
else:
from . import node_tree
from . import node_settings
from . import node_tree
from . import operator
from . import ui

Expand Down
9 changes: 8 additions & 1 deletion geometry/node_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,5 +494,12 @@
("pivot_axis", ST.ENUM)],

'FunctionNodeRotateEuler' : [("space", ST.ENUM),
("type", ST.ENUM)]
("type", ST.ENUM)],

# MISC
'NodeFrame' : [],
'NodeGroupInput' : [],
'NodeGroupOutput' : [],
'NodeReroute' : []

}
4 changes: 4 additions & 0 deletions geometry/operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ def _process_node_tree(self, node_tree: GeometryNodeTree,
f"name = {str_to_py_str(node_tree.name)})\n"))
self._write("\n")

if bpy.app.version >= (4, 0, 0):
self._write(f"{inner}{nt_var}.is_modifier = {node_tree.is_modifier}\n")
self._write(f"{inner}{nt_var}.is_tool = {node_tree.is_tool}\n")

#initialize nodes
self._write(f"{inner}#initialize {nt_var} nodes\n")

Expand Down
10 changes: 9 additions & 1 deletion material/node_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,8 @@

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

'ShaderNodeNormal' : [],

'ShaderNodeNormalMap' : [("space", ST.ENUM),
("uv_map", ST.STRING)], #TODO

Expand Down Expand Up @@ -269,5 +271,11 @@
("filepath", ST.STRING),
("mode", ST.ENUM),
("script", ST.TEXT),
("use_auto_update", ST.BOOL)]
("use_auto_update", ST.BOOL)],

# MISC
'NodeFrame' : [],
'NodeGroupInput' : [],
'NodeGroupOutput' : [],
'NodeReroute' : []
}
Loading