Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-09-14 16:21:18 +0400
committerTon Roosendaal <ton@blender.org>2006-09-14 16:21:18 +0400
commitbcb16ea2809ff2f2aebb46979f3b8b977f0a1111 (patch)
tree19c8e8fc5fa57ea7d420ac65c5ed3179e6cdb435 /source/blender/blenkernel/BKE_node.h
parent6c73b506cb02310a02b3cf003c6a2b20415804fa (diff)
Patch #4970 (brecht)
Added: Scale node in Compositor. - Only works for RGBA buffers now - I have added an option "Relative" or "Absolute" scale. So you can also define actual pixels for scale. Values for scale are reset when you switch, to prevent too weird situations. - Scaling wasn't foreseen to work with the preview-panel in UV window, this preview cropping only happens for Image and RenderResult nodes... actually should be done for the scale too. I wait with t hat though... this preview method isn't very advanced yet. - The pass_on_compbuf() here crashed in tests with preview panel, that's weak code... I have to recode that. For time being I use the dupalloc_compbuf to have it stable.
Diffstat (limited to 'source/blender/blenkernel/BKE_node.h')
-rw-r--r--source/blender/blenkernel/BKE_node.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/blenkernel/BKE_node.h b/source/blender/blenkernel/BKE_node.h
index 68583eb1aa2..ad9966636f1 100644
--- a/source/blender/blenkernel/BKE_node.h
+++ b/source/blender/blenkernel/BKE_node.h
@@ -230,8 +230,9 @@ void set_node_shader_lamp_loop(void (*lamp_loop_func)(struct ShadeInput *, str
#define CMP_NODE_COMBRGBA 227
#define CMP_NODE_DILATEERODE 228
#define CMP_NODE_ROTATE 229
+#define CMP_NODE_SCALE 230
-/* filter types */
+/* filter types, in custom1 */
#define CMP_FILT_SOFT 0
#define CMP_FILT_SHARP 1
#define CMP_FILT_LAPLACE 2
@@ -240,6 +241,9 @@ void set_node_shader_lamp_loop(void (*lamp_loop_func)(struct ShadeInput *, str
#define CMP_FILT_KIRSCH 5
#define CMP_FILT_SHADOW 6
+/* scale node type, in custom1 */
+#define CMP_SCALE_RELATIVE 0
+#define CMP_SCALE_ABSOLUTE 1
/* the type definitions array */
extern bNodeType *node_all_composit[];