Since nobody seemed to complain about this, i have now committed this change, together with a small renaming of the in_out property:
http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Node_Socket_in_out_.28r60660.29 http://wiki.blender.org/index.php/Extensions:2.6/Py/API_Changes#Python_Node_Output_Drawing_.28r60661.29 On Sat, Sep 7, 2013 at 1:31 PM, Lukas Tönne <[email protected]> wrote: > Custom node output sockets are missing a feature to allow drawing buttons: > > http://blender.stackexchange.com/questions/2740/bug-of-the-socket-output-is-not-it > > I have a simple patch ready to implement this, but would not sure if this > should go in at BCon3 (considering how touchy API changes are): > http://www.pasteall.org/45431/diff > > There are no changes to any existing nodes, but pynodes scripts will need > a small update to draw in the usual way (only display label on outputs), as > shown in the custom_nodes template: > > def draw(self, context, layout, node, text): > - if self.is_linked: > + if self.in_out == 'OUT' or self.is_linked: > layout.label(text) > else: > # draw full property buttons here > > Would it be ok to add this in trunk at this stage? > _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
