diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-06-15 11:50:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-06-15 11:50:27 +0400 |
commit | 46ea5670db378048fc1339b5e355523842fa82a2 (patch) | |
tree | 45124626abbb8d43fce2e3f0f89b9067590a3def /source/blender/compositor/operations/COM_ScaleOperation.h | |
parent | e879ee1798151301765bcdf6b2e6c67718a782a8 (diff) |
scale node - framing offset: compatible with camera shiftX/Y and the viewport option.
Diffstat (limited to 'source/blender/compositor/operations/COM_ScaleOperation.h')
-rw-r--r-- | source/blender/compositor/operations/COM_ScaleOperation.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/compositor/operations/COM_ScaleOperation.h b/source/blender/compositor/operations/COM_ScaleOperation.h index 3964a5e2f71..7089f6c10a4 100644 --- a/source/blender/compositor/operations/COM_ScaleOperation.h +++ b/source/blender/compositor/operations/COM_ScaleOperation.h @@ -69,6 +69,9 @@ class ScaleFixedSizeOperation : public NodeOperation { float offsetY; bool is_aspect; bool is_crop; + /* set from other properties on initialization, + * check if we need to apply offset */ + bool is_offset; public: ScaleFixedSizeOperation(); bool determineDependingAreaOfInterest(rcti *input, ReadBufferOperation *readOperation, rcti *output); @@ -79,8 +82,9 @@ public: void deinitExecution(); void setNewWidth(int width) { this->newWidth = width; } void setNewHeight(int height) { this->newHeight = height; } - void setIsAspect(int is_aspect) { this->is_aspect = is_aspect; } - void setIsCrop(int is_crop) { this->is_crop = is_crop; } + void setIsAspect(bool is_aspect) { this->is_aspect = is_aspect; } + void setIsCrop(bool is_crop) { this->is_crop = is_crop; } + void setOffset(float x, float y) { this->offsetX = x; this->offsetY = y; } }; #endif |