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 20:13:09 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-14 20:13:09 +0400
commit1a39e74131b9dc30cb5daf4dffe3bb17c74f44fc (patch)
treefff081f5fa2ca68fd54355a329e60a04d6a52a95 /source/blender/compositor
parent0b2fcf43680eb0c6877bd111580fa98ae7ccb7e7 (diff)
revert own commits 47907, 47908 after some discussion this is really bad and needs some different solution.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r--source/blender/compositor/nodes/COM_ScaleNode.cpp5
-rw-r--r--source/blender/compositor/operations/COM_ScaleOperation.cpp5
-rw-r--r--source/blender/compositor/operations/COM_ScaleOperation.h9
3 files changed, 0 insertions, 19 deletions
diff --git a/source/blender/compositor/nodes/COM_ScaleNode.cpp b/source/blender/compositor/nodes/COM_ScaleNode.cpp
index 09fd40be31e..fd4e4331fca 100644
--- a/source/blender/compositor/nodes/COM_ScaleNode.cpp
+++ b/source/blender/compositor/nodes/COM_ScaleNode.cpp
@@ -77,11 +77,6 @@ void ScaleNode::convertToOperations(ExecutionSystem *graph, CompositorContext *c
case CMP_SCALE_ABSOLUTE: {
ScaleAbsoluteOperation *operation = new ScaleAbsoluteOperation(); // TODO: what is the use of this one.... perhaps some issues when the ui was updated....
-#ifdef USE_SCENE_COMPO_SCALE
- const RenderData *data = &context->getScene()->r;
- operation->setRenderPercentage(data->size / 100.0f);
-#endif
-
inputSocket->relinkConnections(operation->getInputSocket(0), 0, graph);
inputXSocket->relinkConnections(operation->getInputSocket(1), 1, graph);
inputYSocket->relinkConnections(operation->getInputSocket(2), 2, graph);
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.cpp b/source/blender/compositor/operations/COM_ScaleOperation.cpp
index ae640bf7057..f0c3b41b61a 100644
--- a/source/blender/compositor/operations/COM_ScaleOperation.cpp
+++ b/source/blender/compositor/operations/COM_ScaleOperation.cpp
@@ -136,13 +136,8 @@ void ScaleAbsoluteOperation::executePixel(float *color, float x, float y, PixelS
this->inputXOperation->read(scaleX, x, y, sampler, inputBuffers);
this->inputYOperation->read(scaleY, x, y, sampler, inputBuffers);
-#ifdef USE_SCENE_COMPO_SCALE
- const float scx = scaleX[0] * this->render_perc; // target absolute scale * render_percentage
- const float scy = scaleY[0] * this->render_perc; // target absolute scale * render_percentage
-#else
const float scx = scaleX[0]; // target absolute scale
const float scy = scaleY[0]; // target absolute scale
-#endif
const float width = this->getWidth();
const float height = this->getHeight();
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.h b/source/blender/compositor/operations/COM_ScaleOperation.h
index cc666187f36..cf2f878e8bc 100644
--- a/source/blender/compositor/operations/COM_ScaleOperation.h
+++ b/source/blender/compositor/operations/COM_ScaleOperation.h
@@ -48,11 +48,6 @@ class ScaleAbsoluteOperation : public NodeOperation {
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);
@@ -60,10 +55,6 @@ 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 {