2011-02-23 10:52:22 +00:00
|
|
|
/*
|
2009-11-11 08:12:54 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
2018-06-01 18:19:39 +02:00
|
|
|
* of the License, or (at your option) any later version.
|
2009-11-11 08:12:54 +00:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
2010-02-12 13:34:04 +00:00
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2009-11-11 08:12:54 +00:00
|
|
|
*
|
|
|
|
* The Original Code is Copyright (C) 2009 Blender Foundation.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2019-02-18 08:08:12 +11:00
|
|
|
/** \file
|
|
|
|
* \ingroup spnode
|
2011-02-27 20:29:51 +00:00
|
|
|
*/
|
|
|
|
|
2011-01-07 18:36:47 +00:00
|
|
|
#include "MEM_guardedalloc.h"
|
|
|
|
|
2009-11-11 08:12:54 +00:00
|
|
|
#include "DNA_node_types.h"
|
|
|
|
|
|
|
|
#include "BLI_blenlib.h"
|
2020-03-19 09:33:03 +01:00
|
|
|
#include "BLI_math.h"
|
2009-11-11 08:12:54 +00:00
|
|
|
|
2015-08-16 17:32:01 +10:00
|
|
|
#include "BLT_translation.h"
|
Fixed another bunch of i18n bugs (thx to Leon Cheung for spotting them), among which:
* Drag'n'drop translation in Outliner
* "Execute" button in file window
* "Labels" of spacing elements, in multi-column enums
* A glitch with nodes "Value to RGB", they where called "ColorRamp" in node_type_base() call. This is not definitive, though, as it appears that UI node names are determined by this call, while it should be by "defines" in rna_nodetrre_types.h, I guess... Anyway, not good to have such things in two different places!
Also moved default context name under BLF_translation.h, much better to have those all in one place, accessible from whole Blender code!
2012-04-14 15:06:41 +00:00
|
|
|
|
2009-11-11 08:12:54 +00:00
|
|
|
#include "BKE_context.h"
|
2011-11-07 22:28:49 +00:00
|
|
|
#include "BKE_global.h"
|
2009-11-11 10:51:40 +00:00
|
|
|
#include "BKE_node.h"
|
2009-11-11 08:12:54 +00:00
|
|
|
#include "BKE_screen.h"
|
|
|
|
|
|
|
|
#include "WM_api.h"
|
|
|
|
#include "WM_types.h"
|
|
|
|
|
|
|
|
#include "RNA_access.h"
|
|
|
|
|
|
|
|
#include "ED_screen.h"
|
|
|
|
|
|
|
|
#include "UI_resources.h"
|
|
|
|
|
2012-08-02 23:03:16 +00:00
|
|
|
#include "node_intern.h" /* own include */
|
2009-11-11 08:12:54 +00:00
|
|
|
|
|
|
|
/* ******************* node space & buttons ************** */
|
2009-11-11 10:51:40 +00:00
|
|
|
|
Grease Pencil - Storyboarding Features (merge from GPencil_EditStrokes branch)
This merge-commit brings in a number of new features and workflow/UI improvements for
working with Grease Pencil. While these were originally targetted at improving
the workflow for creating 3D storyboards in Blender using the Grease Pencil,
many of these changes should also prove useful in other workflows too.
The main highlights here are:
1) It is now possible to edit Grease Pencil strokes
- Use D Tab, or toggle the "Enable Editing" toggles in the Toolbar/Properties regions
to enter "Stroke Edit Mode". In this mode, many common editing tools will
operate on Grease Pencil stroke points instead.
- Tools implemented include Select, Select All/Border/Circle/Linked/More/Less,
Grab, Rotate, Scale, Bend, Shear, To Sphere, Mirror, Duplicate, Delete.
- Proportional Editing works when using the transform tools
2) Grease Pencil stroke settings can now be animated
NOTE: Currently drivers don't work, but if time allows, this may still be
added before the release.
3) Strokes can be drawn with "filled" interiors, using a separate set of
colour/opacity settings to the ones used for the lines themselves.
This makes use of OpenGL filled polys, which has the limitation of only
being able to fill convex shapes. Some artifacts may be visible on concave
shapes (e.g. pacman's mouth will be overdrawn)
4) "Volumetric Strokes" - An alternative drawing technique for stroke drawing
has been added which draws strokes as a series of screen-aligned discs.
While this was originally a partial experimental technique at getting better
quality 3D lines, the effects possible using this technique were interesting
enough to warrant making this a dedicated feature. Best results when partial
opacity and large stroke widths are used.
5) Improved Onion Skinning Support
- Different colours can be selected for the before/after ghosts. To do so,
enable the "colour wheel" toggle beside the Onion Skinning toggle, and set
the colours accordingly.
- Different numbers of ghosts can be shown before/after the current frame
6) Grease Pencil datablocks are now attached to the scene by default instead of
the active object.
- For a long time, the object-attachment has proved to be quite problematic
for users to keep track of. Now that this is done at scene level, it is
easier for most users to use.
- An exception for old files (and for any addons which may benefit from object
attachment instead), is that if the active object has a Grease Pencil datablock,
that will be used instead.
- It is not currently possible to choose object-attachment from the UI, but
it is simple to do this from the console instead, by doing:
context.active_object.grease_pencil = bpy.data.grease_pencil["blah"]
7) Various UI Cleanups
- The layers UI has been cleaned up to use a list instead of the nested-panels
design. Apart from saving space, this is also much nicer to look at now.
- The UI code is now all defined in Python. To support this, it has been necessary
to add some new context properties to make it easier to access these settings.
e.g. "gpencil_data" for the datablock
"active_gpencil_layer" and "active_gpencil_frame" for active data,
"editable_gpencil_strokes" for the strokes that can be edited
- The "stroke placement/alignment" settings (previously "Drawing Settings" at the
bottom of the Grease Pencil panel in the Properties Region) is now located in
the toolbar. These were more toolsettings than properties for how GPencil got drawn.
- "Use Sketching Sessions" has been renamed "Continuous Drawing", as per a
suggestion for an earlier discussion on developer.blender.org
- By default, the painting operator will wait for a mouse button to be pressed
before it starts creating the stroke. This is to make it easier to include
this operator in various toolbars/menus/etc. To get it immediately starting
(as when you hold down DKEy to draw), set "wait_for_input" to False.
- GPencil Layers can be rearranged in the "Grease Pencil" mode of the Action Editor
- Toolbar panels have been added to all the other editors which support these.
8) Pie menus for quick-access to tools
A set of experimental pie menus has been included for quick access to many
tools and settings. It is not necessary to use these to get things done,
but they have been designed to help make certain common tasks easier.
- Ctrl-D = The main pie menu. Reveals tools in a context sensitive and
spatially stable manner.
- D Q = "Quick Settings" pie. This allows quick access to the active
layer's settings. Notably, colours, thickness, and turning
onion skinning on/off.
2014-12-01 01:52:06 +13:00
|
|
|
#if 0
|
2012-04-13 11:58:16 +00:00
|
|
|
/* poll for active nodetree */
|
2018-07-02 11:47:00 +02:00
|
|
|
static bool active_nodetree_poll(const bContext *C, PanelType *UNUSED(pt))
|
2012-04-13 11:58:16 +00:00
|
|
|
{
|
2012-08-04 12:54:27 +00:00
|
|
|
SpaceNode *snode = CTX_wm_space_node(C);
|
2018-06-04 09:31:30 +02:00
|
|
|
|
2013-03-19 13:40:16 +00:00
|
|
|
return (snode && snode->nodetree);
|
2012-04-13 11:58:16 +00:00
|
|
|
}
|
Grease Pencil - Storyboarding Features (merge from GPencil_EditStrokes branch)
This merge-commit brings in a number of new features and workflow/UI improvements for
working with Grease Pencil. While these were originally targetted at improving
the workflow for creating 3D storyboards in Blender using the Grease Pencil,
many of these changes should also prove useful in other workflows too.
The main highlights here are:
1) It is now possible to edit Grease Pencil strokes
- Use D Tab, or toggle the "Enable Editing" toggles in the Toolbar/Properties regions
to enter "Stroke Edit Mode". In this mode, many common editing tools will
operate on Grease Pencil stroke points instead.
- Tools implemented include Select, Select All/Border/Circle/Linked/More/Less,
Grab, Rotate, Scale, Bend, Shear, To Sphere, Mirror, Duplicate, Delete.
- Proportional Editing works when using the transform tools
2) Grease Pencil stroke settings can now be animated
NOTE: Currently drivers don't work, but if time allows, this may still be
added before the release.
3) Strokes can be drawn with "filled" interiors, using a separate set of
colour/opacity settings to the ones used for the lines themselves.
This makes use of OpenGL filled polys, which has the limitation of only
being able to fill convex shapes. Some artifacts may be visible on concave
shapes (e.g. pacman's mouth will be overdrawn)
4) "Volumetric Strokes" - An alternative drawing technique for stroke drawing
has been added which draws strokes as a series of screen-aligned discs.
While this was originally a partial experimental technique at getting better
quality 3D lines, the effects possible using this technique were interesting
enough to warrant making this a dedicated feature. Best results when partial
opacity and large stroke widths are used.
5) Improved Onion Skinning Support
- Different colours can be selected for the before/after ghosts. To do so,
enable the "colour wheel" toggle beside the Onion Skinning toggle, and set
the colours accordingly.
- Different numbers of ghosts can be shown before/after the current frame
6) Grease Pencil datablocks are now attached to the scene by default instead of
the active object.
- For a long time, the object-attachment has proved to be quite problematic
for users to keep track of. Now that this is done at scene level, it is
easier for most users to use.
- An exception for old files (and for any addons which may benefit from object
attachment instead), is that if the active object has a Grease Pencil datablock,
that will be used instead.
- It is not currently possible to choose object-attachment from the UI, but
it is simple to do this from the console instead, by doing:
context.active_object.grease_pencil = bpy.data.grease_pencil["blah"]
7) Various UI Cleanups
- The layers UI has been cleaned up to use a list instead of the nested-panels
design. Apart from saving space, this is also much nicer to look at now.
- The UI code is now all defined in Python. To support this, it has been necessary
to add some new context properties to make it easier to access these settings.
e.g. "gpencil_data" for the datablock
"active_gpencil_layer" and "active_gpencil_frame" for active data,
"editable_gpencil_strokes" for the strokes that can be edited
- The "stroke placement/alignment" settings (previously "Drawing Settings" at the
bottom of the Grease Pencil panel in the Properties Region) is now located in
the toolbar. These were more toolsettings than properties for how GPencil got drawn.
- "Use Sketching Sessions" has been renamed "Continuous Drawing", as per a
suggestion for an earlier discussion on developer.blender.org
- By default, the painting operator will wait for a mouse button to be pressed
before it starts creating the stroke. This is to make it easier to include
this operator in various toolbars/menus/etc. To get it immediately starting
(as when you hold down DKEy to draw), set "wait_for_input" to False.
- GPencil Layers can be rearranged in the "Grease Pencil" mode of the Action Editor
- Toolbar panels have been added to all the other editors which support these.
8) Pie menus for quick-access to tools
A set of experimental pie menus has been included for quick access to many
tools and settings. It is not necessary to use these to get things done,
but they have been designed to help make certain common tasks easier.
- Ctrl-D = The main pie menu. Reveals tools in a context sensitive and
spatially stable manner.
- D Q = "Quick Settings" pie. This allows quick access to the active
layer's settings. Notably, colours, thickness, and turning
onion skinning on/off.
2014-12-01 01:52:06 +13:00
|
|
|
#endif
|
2012-04-13 11:58:16 +00:00
|
|
|
|
2018-07-02 11:47:00 +02:00
|
|
|
static bool node_sockets_poll(const bContext *C, PanelType *UNUSED(pt))
|
2011-11-07 22:28:49 +00:00
|
|
|
{
|
2012-08-04 12:54:27 +00:00
|
|
|
SpaceNode *snode = CTX_wm_space_node(C);
|
2018-06-04 09:31:30 +02:00
|
|
|
|
2012-08-08 18:21:54 +00:00
|
|
|
return (snode && snode->nodetree && G.debug_value == 777);
|
2011-11-07 22:28:49 +00:00
|
|
|
}
|
|
|
|
|
2020-04-03 22:20:25 -05:00
|
|
|
static void node_sockets_panel(const bContext *C, Panel *panel)
|
2011-11-07 22:28:49 +00:00
|
|
|
{
|
2020-11-30 13:56:46 -05:00
|
|
|
SpaceNode *snode = CTX_wm_space_node(C); /* NULL checked in poll function. */
|
|
|
|
bNodeTree *ntree = snode->edittree; /* NULL checked in poll function. */
|
|
|
|
bNode *node = nodeGetActive(ntree);
|
|
|
|
if (node == NULL) {
|
2011-11-07 22:28:49 +00:00
|
|
|
return;
|
2019-03-26 21:16:47 +11:00
|
|
|
}
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2020-11-30 13:56:46 -05:00
|
|
|
LISTBASE_FOREACH (bNodeSocket *, socket, &node->inputs) {
|
|
|
|
char name[UI_MAX_NAME_STR];
|
|
|
|
BLI_snprintf(name, sizeof(name), "%s:", socket->name);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2020-11-30 13:56:46 -05:00
|
|
|
uiLayout *split = uiLayoutSplit(panel->layout, 0.35f, false);
|
2011-11-07 22:28:49 +00:00
|
|
|
uiItemL(split, name, ICON_NONE);
|
2020-11-30 13:56:46 -05:00
|
|
|
uiTemplateNodeLink(split, (bContext *)C, ntree, node, socket);
|
2011-11-07 22:28:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-07-02 11:47:00 +02:00
|
|
|
static bool node_tree_interface_poll(const bContext *C, PanelType *UNUSED(pt))
|
2013-03-18 16:34:57 +00:00
|
|
|
{
|
2013-03-18 18:25:05 +00:00
|
|
|
SpaceNode *snode = CTX_wm_space_node(C);
|
2018-06-04 09:31:30 +02:00
|
|
|
|
2013-03-18 16:34:57 +00:00
|
|
|
return (snode && snode->edittree &&
|
|
|
|
(snode->edittree->inputs.first || snode->edittree->outputs.first));
|
|
|
|
}
|
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
static bNodeSocket *node_tree_find_active_socket(bNodeTree *ntree, const eNodeSocketInOut in_out)
|
2013-03-18 16:34:57 +00:00
|
|
|
{
|
2021-01-10 13:24:37 -06:00
|
|
|
ListBase *sockets = (in_out == SOCK_IN) ? &ntree->inputs : &ntree->outputs;
|
|
|
|
LISTBASE_FOREACH (bNodeSocket *, socket, sockets) {
|
2020-11-30 13:56:46 -05:00
|
|
|
if (socket->flag & SELECT) {
|
2021-01-10 13:24:37 -06:00
|
|
|
return socket;
|
2013-03-18 16:34:57 +00:00
|
|
|
}
|
|
|
|
}
|
2021-01-10 13:24:37 -06:00
|
|
|
return NULL;
|
2013-03-18 16:34:57 +00:00
|
|
|
}
|
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
static void draw_socket_list(const bContext *C,
|
|
|
|
uiLayout *layout,
|
|
|
|
bNodeTree *ntree,
|
|
|
|
const eNodeSocketInOut in_out)
|
2013-03-18 16:34:57 +00:00
|
|
|
{
|
2021-01-10 13:24:37 -06:00
|
|
|
PointerRNA tree_ptr;
|
|
|
|
RNA_id_pointer_create((ID *)ntree, &tree_ptr);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
uiLayout *split = uiLayoutRow(layout, false);
|
|
|
|
uiLayout *list_col = uiLayoutColumn(split, true);
|
|
|
|
uiTemplateList(list_col,
|
2013-08-27 15:27:41 +00:00
|
|
|
(bContext *)C,
|
|
|
|
"NODE_UL_interface_sockets",
|
2021-01-10 13:24:37 -06:00
|
|
|
(in_out == SOCK_IN) ? "inputs" : "outputs",
|
|
|
|
&tree_ptr,
|
|
|
|
(in_out == SOCK_IN) ? "inputs" : "outputs",
|
|
|
|
&tree_ptr,
|
|
|
|
(in_out == SOCK_IN) ? "active_input" : "active_output",
|
2019-01-09 15:48:09 +01:00
|
|
|
NULL,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
0,
|
|
|
|
false,
|
|
|
|
false);
|
2020-11-30 13:56:46 -05:00
|
|
|
PointerRNA opptr;
|
2021-01-10 13:24:37 -06:00
|
|
|
uiLayout *ops_col = uiLayoutColumn(split, false);
|
|
|
|
uiLayout *add_remove_col = uiLayoutColumn(ops_col, true);
|
|
|
|
wmOperatorType *ot = WM_operatortype_find("NODE_OT_tree_socket_add", false);
|
|
|
|
uiItemFullO_ptr(add_remove_col, ot, "", ICON_ADD, NULL, WM_OP_EXEC_DEFAULT, 0, &opptr);
|
|
|
|
RNA_enum_set(&opptr, "in_out", in_out);
|
|
|
|
ot = WM_operatortype_find("NODE_OT_tree_socket_remove", false);
|
|
|
|
uiItemFullO_ptr(add_remove_col, ot, "", ICON_REMOVE, NULL, WM_OP_EXEC_DEFAULT, 0, &opptr);
|
|
|
|
RNA_enum_set(&opptr, "in_out", in_out);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
uiItemS(ops_col);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
uiLayout *up_down_col = uiLayoutColumn(ops_col, true);
|
2017-03-22 19:41:03 +01:00
|
|
|
ot = WM_operatortype_find("NODE_OT_tree_socket_move", false);
|
2021-01-10 13:24:37 -06:00
|
|
|
uiItemFullO_ptr(up_down_col, ot, "", ICON_TRIA_UP, NULL, WM_OP_EXEC_DEFAULT, 0, &opptr);
|
2013-03-18 16:34:57 +00:00
|
|
|
RNA_enum_set(&opptr, "direction", 1);
|
2021-01-10 13:24:37 -06:00
|
|
|
RNA_enum_set(&opptr, "in_out", in_out);
|
|
|
|
uiItemFullO_ptr(up_down_col, ot, "", ICON_TRIA_DOWN, NULL, WM_OP_EXEC_DEFAULT, 0, &opptr);
|
2013-03-18 16:34:57 +00:00
|
|
|
RNA_enum_set(&opptr, "direction", 2);
|
2021-01-10 13:24:37 -06:00
|
|
|
RNA_enum_set(&opptr, "in_out", in_out);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
bNodeSocket *socket = node_tree_find_active_socket(ntree, in_out);
|
|
|
|
if (socket != NULL) {
|
|
|
|
uiLayoutSetPropSep(layout, true);
|
|
|
|
uiLayoutSetPropDecorate(layout, false);
|
|
|
|
PointerRNA socket_ptr;
|
|
|
|
RNA_pointer_create((ID *)ntree, &RNA_NodeSocketInterface, socket, &socket_ptr);
|
|
|
|
uiItemR(layout, &socket_ptr, "name", 0, NULL, ICON_NONE);
|
2019-04-17 06:17:24 +02:00
|
|
|
|
2021-04-13 22:11:58 +02:00
|
|
|
/* Display descriptions only for Geometry Nodes, since it's only used in the modifier panel. */
|
|
|
|
if (ntree->type == NTREE_GEOMETRY) {
|
|
|
|
uiItemR(layout, &socket_ptr, "description", 0, NULL, ICON_NONE);
|
|
|
|
}
|
|
|
|
|
2020-11-30 13:56:46 -05:00
|
|
|
if (socket->typeinfo->interface_draw) {
|
2021-01-10 13:24:37 -06:00
|
|
|
socket->typeinfo->interface_draw((bContext *)C, layout, &socket_ptr);
|
2013-03-18 16:34:57 +00:00
|
|
|
}
|
2019-04-17 06:17:24 +02:00
|
|
|
}
|
2013-03-18 16:34:57 +00:00
|
|
|
}
|
|
|
|
|
2021-01-10 13:24:37 -06:00
|
|
|
static void node_tree_interface_inputs_panel(const bContext *C, Panel *panel)
|
|
|
|
{
|
|
|
|
SpaceNode *snode = CTX_wm_space_node(C); /* NULL checked in poll function. */
|
|
|
|
bNodeTree *ntree = snode->edittree; /* NULL checked in poll function. */
|
|
|
|
|
|
|
|
draw_socket_list(C, panel->layout, ntree, SOCK_IN);
|
|
|
|
}
|
|
|
|
|
|
|
|
static void node_tree_interface_outputs_panel(const bContext *C, Panel *panel)
|
|
|
|
{
|
|
|
|
SpaceNode *snode = CTX_wm_space_node(C); /* NULL checked in poll function. */
|
|
|
|
bNodeTree *ntree = snode->edittree; /* NULL checked in poll function. */
|
|
|
|
|
|
|
|
draw_socket_list(C, panel->layout, ntree, SOCK_OUT);
|
|
|
|
}
|
|
|
|
|
2009-11-11 08:12:54 +00:00
|
|
|
/* ******************* node buttons registration ************** */
|
|
|
|
|
|
|
|
void node_buttons_register(ARegionType *art)
|
|
|
|
{
|
2021-01-10 13:24:37 -06:00
|
|
|
{
|
|
|
|
PanelType *pt = MEM_callocN(sizeof(PanelType), __func__);
|
|
|
|
strcpy(pt->idname, "NODE_PT_sockets");
|
|
|
|
strcpy(pt->category, N_("Node"));
|
|
|
|
strcpy(pt->label, N_("Sockets"));
|
|
|
|
strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
|
|
|
|
pt->draw = node_sockets_panel;
|
|
|
|
pt->poll = node_sockets_poll;
|
|
|
|
pt->flag |= PANEL_TYPE_DEFAULT_CLOSED;
|
|
|
|
BLI_addtail(&art->paneltypes, pt);
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
PanelType *pt = MEM_callocN(sizeof(PanelType), __func__);
|
|
|
|
strcpy(pt->idname, "NODE_PT_node_tree_interface_inputs");
|
2021-03-25 09:16:03 +01:00
|
|
|
strcpy(pt->category, N_("Group"));
|
2021-01-10 13:24:37 -06:00
|
|
|
strcpy(pt->label, N_("Inputs"));
|
|
|
|
strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
|
|
|
|
pt->draw = node_tree_interface_inputs_panel;
|
|
|
|
pt->poll = node_tree_interface_poll;
|
|
|
|
BLI_addtail(&art->paneltypes, pt);
|
|
|
|
}
|
|
|
|
{
|
|
|
|
PanelType *pt = MEM_callocN(sizeof(PanelType), __func__);
|
|
|
|
strcpy(pt->idname, "NODE_PT_node_tree_interface_outputs");
|
2021-03-25 09:16:03 +01:00
|
|
|
strcpy(pt->category, N_("Group"));
|
2021-01-10 13:24:37 -06:00
|
|
|
strcpy(pt->label, N_("Outputs"));
|
|
|
|
strcpy(pt->translation_context, BLT_I18NCONTEXT_DEFAULT_BPYRNA);
|
|
|
|
pt->draw = node_tree_interface_outputs_panel;
|
|
|
|
pt->poll = node_tree_interface_poll;
|
|
|
|
BLI_addtail(&art->paneltypes, pt);
|
|
|
|
}
|
2009-11-11 08:12:54 +00:00
|
|
|
}
|