瀏覽代碼

Fix new socket precision in node group

luboslenco 1 周之前
父節點
當前提交
ab82122f0d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      paint/sources/nodes_material.ts

+ 2 - 1
paint/sources/nodes_material.ts

@@ -4681,7 +4681,8 @@ function nodes_material_create_socket(nodes: ui_nodes_t, node: ui_node_t, name:
 		color: nodes_material_get_socket_color(type),
 		default_value: default_value == null ? nodes_material_get_socket_default_value(type) : default_value,
 		min: min,
-		max: max
+		max: max,
+		precision: 100
 	};
 	return soc;
 }