Compositor: UI: better node visibility for default node tree

Create default compositor node tree centred around x-axis, and with lower y-offset for better visibility

Pull Request: https://projects.blender.org/blender/blender/pulls/115439
This commit is contained in:
Habib Gahbiche
2023-11-28 18:45:37 +01:00
committed by Habib Gahbiche
parent 81abaaad6b
commit ff083c1595

View File

@@ -593,12 +593,12 @@ void ED_node_composit_default(const bContext *C, Scene *sce)
sce->nodetree->render_quality = NTREE_QUALITY_HIGH;
bNode *out = nodeAddStaticNode(C, sce->nodetree, CMP_NODE_COMPOSITE);
out->locx = 300.0f;
out->locy = 400.0f;
out->locx = 200.0f;
out->locy = 200.0f;
bNode *in = nodeAddStaticNode(C, sce->nodetree, CMP_NODE_R_LAYERS);
in->locx = 10.0f;
in->locy = 400.0f;
in->locx = -200.0f;
in->locy = 200.0f;
nodeSetActive(sce->nodetree, in);
/* Links from color to color. */