render settings dialog: always preserve the crop window

metadata
Wenzel Jakob 2013-10-18 11:25:47 +02:00
parent 6f81b5623b
commit 480e3eb9d5
2 changed files with 2 additions and 3 deletions

View File

@ -102,11 +102,10 @@ SceneHandler::SceneHandler(const SAXParser *parser,
m_tags["blackbody"] = TagEntry(EBlackBody, (Class *) NULL);
m_tags["spectrum"] = TagEntry(ESpectrum, (Class *) NULL);
m_tags["transform"] = TagEntry(ETransform, (Class *) NULL);
m_tags["animation"] = TagEntry(EAnimation, (Class *) NULL);
m_tags["animation"] = TagEntry(EAnimation, (Class *) NULL);
m_tags["include"] = TagEntry(EInclude, (Class *) NULL);
m_tags["alias"] = TagEntry(EAlias, (Class *) NULL);
XMLTransService::Codes failReason;
m_transcoder = XMLPlatformUtils::fgTransService->makeNewTranscoderFor(
"UTF-8", failReason, TRANSCODE_BLOCKSIZE);

View File

@ -385,7 +385,7 @@ void RenderSettingsDialog::apply(SceneContext *ctx) {
filmProps.setInteger("width", size.x, false);
filmProps.setInteger("height", size.y, false);
if (size.x != cropSize.x || size.y != cropSize.y) {
if (size.x != cropSize.x || size.y != cropSize.y || cropOffset.x != 0 || cropOffset.y != 0) {
filmProps.setInteger("cropWidth", cropSize.x, false);
filmProps.setInteger("cropHeight", cropSize.y, false);
filmProps.setInteger("cropOffsetX", cropOffset.x, false);