ns
запушил(а) master в ns/mantis
29437e0cad Add Custom Interface Socket Types
this commit (re)introduces custom node socket interface types
I did this a long time ago but didn't really understand it so I let Blender
do it automatically
But I am bringing it back because it lets me set some custom variables
for different socket types, such as default values or whether the socket
should be an array or not.
Interface Classes set the multi and default value now
note that this is VERY untested and probably doesn't work for Schema
update interface draw for correct UI and clarity
removes default value from xForm for outputs
removes array if interface item is a connection
and visa versa
fix: unbound local error when updating group interface
initial versioning for new interface classes
Implement Custom Interface Classes
this commit implements versioning and basic functionality for
- default values on group sockets
- arrays and connections editable in the Node Group Interface
- array support for regular Node Groups
tested and working with Human, Elephant, and Stego files.
Disable "Connected To" feature
this one is a little too ambitious and it will be too hard to implement
Fix: default value disabled for Matrix
(it is not yet implemented)
Fix: correct default value type for vectors
New Feature: Default Values for base tree
Fix: interface panel doesn't have an identifier
Fix: make default values work with more socket types
this commit also improves the error message
and it unfortunately(?) adds an assert from something I think is a safe assumption.
Initialize Tree with correct version number
WIP: Route Group I/O through interface nodes
This commit does not work! But it is a good start.
The purpose of this commit is to move towards bundling connections
at the base of each group in/out so that I can cache things, manage
variables, and most importantly for present purposes, send arrays
in and out in a more consistent way. Probably I revert this commit
and do something very similar without the intervening node until I
get that slightly simpler strategy working.
GroupInterfaceNodes at group in/out
This commit fixes and finishes the last commit.
All I forgot was to add the nodes to the parsed tree,
and deal with a little bit of hardcoded foolishness
that assumed there would be no intervening nodes
using socket traversal.
There will be more fixing for this behaviour in the near
future, no doubt. But this works, and it opens up
a whole lot of doors.
clean up useless prints
Fix: remove many instances of hardcoded node get
search ".link[0]" to find the rest of them and fix before release
for now, the matter of array sort id is much more pressing
Fix: Correctly Sort Links to Group Arrays
Look at the comment in readtree to understand this commit
Special note: this really needs more robust testing
but since I have tested stuff that I understand the only
test cases I am unsure about are those which are too hard
for me to imagine ahead of time. So probably I fix it if/when
someone actually encounters it.
cleanup xForm get_parent_node
Fix: lazy parents broken
Fix: Spline IK broken
3 месяцев назад