Consolidate and update

This commit is contained in:
2026-10-27 15:58:22 -07:00
parent eb211da457
commit 6c13722fc6
42 changed files with 498 additions and 169 deletions

View File

@ -123,6 +123,8 @@ def set_socket_default(socket: NodeSocket, value: Any):
"""Set the socket's default value if it exists."""
if isinstance(socket, lnx.logicnode.lnx_sockets.LnxCustomSocket):
if socket.lnx_socket_type != 'NONE':
if socket.lnx_socket_type == 'INT' and isinstance(value, float):
value = int(value)
socket.default_value_raw = value
# Shader-type sockets don't have a default value