[Bf-blender-cvs] [4ccd998657d] builtin-simulation-nodes: restore node width
Jacques Lucke
noreply at git.blender.org
Sat Mar 21 13:48:33 CET 2020
Commit: 4ccd998657d6a1d31f07c7fc04782e4b19139a0f
Author: Jacques Lucke
Date: Sat Mar 21 13:47:04 2020 +0100
Branches: builtin-simulation-nodes
https://developer.blender.org/rB4ccd998657d6a1d31f07c7fc04782e4b19139a0f
restore node width
===================================================================
M release/scripts/startup/bl_operators/node.py
===================================================================
diff --git a/release/scripts/startup/bl_operators/node.py b/release/scripts/startup/bl_operators/node.py
index aa51b9a453d..5efea55ea29 100644
--- a/release/scripts/startup/bl_operators/node.py
+++ b/release/scripts/startup/bl_operators/node.py
@@ -328,7 +328,7 @@ def insert_node_data(node_data, node):
node_data["name"] = node.name
node_data["bl_idname"] = node.bl_idname
node_data["location"] = tuple(map(int, node.location))
- node_data["width"] = node.width
+ node_data["width"] = int(node.width)
# Don't compute this only once in the beginning, because addons might register more properties.
base_node_property_names = {prop.identifier for prop in bpy.types.Node.bl_rna.properties}
@@ -520,6 +520,7 @@ def get_or_create_node_group(json_data, loaded_group_by_name, json_data_by_group
node.name = node_data["name"]
node.location = node_data["location"]
node.select = False
+ node.width = node_data["width"]
if node.bl_idname in {"NodeGroupInput", "NodeGroupOutput"}:
pass
More information about the Bf-blender-cvs
mailing list