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:
authorCampbell Barton <ideasman42@gmail.com>2012-06-14 19:04:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-14 19:04:40 +0400
commit0b2fcf43680eb0c6877bd111580fa98ae7ccb7e7 (patch)
treea7e8128cd82b18df3ca0dcda5a458dc2e1cfaa02 /source/blender/compositor/operations/COM_ScaleOperation.h
parent91eed57e62f2c820a9d1b4764ff3d4c7adafd51c (diff)
change to scale node - multiply scale by scene size, without this theres no reliable way to match different scaled footage to an output and still have useful preview's at <100 percentage.
Diffstat (limited to 'source/blender/compositor/operations/COM_ScaleOperation.h')
-rw-r--r--source/blender/compositor/operations/COM_ScaleOperation.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.h b/source/blender/compositor/operations/COM_ScaleOperation.h
index 9e24ab3d1ca..cc666187f36 100644
--- a/source/blender/compositor/operations/COM_ScaleOperation.h
+++ b/source/blender/compositor/operations/COM_ScaleOperation.h
@@ -47,6 +47,12 @@ class ScaleAbsoluteOperation : public NodeOperation {
SocketReader *inputYOperation;
float centerX;
float centerY;
+
+#ifdef USE_SCENE_COMPO_SCALE
+ /* scene->r.size / 100.0f */ /* added after 2.63, this may be done differently/better */
+ float render_perc;
+#endif
+
public:
ScaleAbsoluteOperation();
bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output);
@@ -54,6 +60,10 @@ public:
void initExecution();
void deinitExecution();
+
+#ifdef USE_SCENE_COMPO_SCALE
+ void setRenderPercentage(float render_perc) { this->render_perc = render_perc; }
+#endif
};
class ScaleFixedSizeOperation : public NodeOperation {