[Bf-blender-cvs] [3c924325933] builtin-simulation-nodes: fixes

Jacques Lucke noreply at git.blender.org
Sat Mar 21 13:48:33 CET 2020


Commit: 3c924325933019743b1be61a28883402634589f7
Author: Jacques Lucke
Date:   Sat Mar 21 13:05:09 2020 +0100
Branches: builtin-simulation-nodes
https://developer.blender.org/rB3c924325933019743b1be61a28883402634589f7

fixes

===================================================================

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 9dd8206d467..2b9ae74e73c 100644
--- a/release/scripts/startup/bl_operators/node.py
+++ b/release/scripts/startup/bl_operators/node.py
@@ -300,7 +300,7 @@ class NODE_OT_tree_path_parent(Operator):
 def get_socket_value(sock):
     if sock.type in {"VALUE", "INT", "BOOLEAN", "STRING"}:
         return sock.default_value
-    elif sock.type in {"VECTOR", "COLOR"}:
+    elif sock.type in {"VECTOR", "RGBA"}:
         return tuple(sock.default_value)
     else:
         return None
@@ -341,7 +341,6 @@ def insert_node_data(node_data, node):
         node_data["properties"] = {}
         for prop in node.bl_rna.properties:
             if prop.identifier not in base_node_property_names:
-                print("Allow: ", prop.identifier)
                 node_data["properties"][prop.identifier] = getattr(node, prop.identifier)
 
         node_data["inputs"] = []
@@ -399,7 +398,7 @@ def node_group_to_json_data(group):
 def save_group_as_json(group, file_path):
     json_data = node_group_to_json_data(group)
     json_str = json.dumps(json_data, indent=1)
-    os.makedirs(os.path.dirname(file_path))
+    os.makedirs(os.path.dirname(file_path), exist_ok=True)
     with open(file_path, "w") as f:
         f.write(json_str)



More information about the Bf-blender-cvs mailing list