Changeset View
Changeset View
Standalone View
Standalone View
plugins/impex/libkra/kis_kra_loader.cpp
Show First 20 Lines • Show All 716 Lines • ▼ Show 20 Line(s) | 716 | if (node->inherits("KisGroupLayer")) { | |||
---|---|---|---|---|---|
717 | if (element.hasAttribute(PASS_THROUGH_MODE)) { | 717 | if (element.hasAttribute(PASS_THROUGH_MODE)) { | ||
718 | bool value = element.attribute(PASS_THROUGH_MODE, "0") != "0"; | 718 | bool value = element.attribute(PASS_THROUGH_MODE, "0") != "0"; | ||
719 | 719 | | |||
720 | KisGroupLayer *group = qobject_cast<KisGroupLayer*>(node.data()); | 720 | KisGroupLayer *group = qobject_cast<KisGroupLayer*>(node.data()); | ||
721 | group->setPassThroughMode(value); | 721 | group->setPassThroughMode(value); | ||
722 | } | 722 | } | ||
723 | } | 723 | } | ||
724 | 724 | | |||
725 | const bool timelineEnabled = element.attribute(VISIBLE_IN_TIMELINE, "0") == "0" ? false : true; | ||||
726 | node->setUseInTimeline(timelineEnabled); | ||||
727 | | ||||
725 | if (node->inherits("KisPaintLayer")) { | 728 | if (node->inherits("KisPaintLayer")) { | ||
726 | KisPaintLayer* layer = qobject_cast<KisPaintLayer*>(node.data()); | 729 | KisPaintLayer* layer = qobject_cast<KisPaintLayer*>(node.data()); | ||
727 | QBitArray channelLockFlags = stringToFlags(element.attribute(CHANNEL_LOCK_FLAGS, ""), colorSpace->channelCount()); | 730 | QBitArray channelLockFlags = stringToFlags(element.attribute(CHANNEL_LOCK_FLAGS, ""), colorSpace->channelCount()); | ||
728 | layer->setChannelLockFlags(channelLockFlags); | 731 | layer->setChannelLockFlags(channelLockFlags); | ||
729 | 732 | | |||
730 | bool onionEnabled = element.attribute(ONION_SKIN_ENABLED, "0") == "0" ? false : true; | 733 | bool onionEnabled = element.attribute(ONION_SKIN_ENABLED, "0") == "0" ? false : true; | ||
731 | layer->setOnionSkinEnabled(onionEnabled); | 734 | layer->setOnionSkinEnabled(onionEnabled); | ||
732 | | ||||
733 | bool timelineEnabled = element.attribute(VISIBLE_IN_TIMELINE, "0") == "0" ? false : true; | | |||
734 | layer->setUseInTimeline(timelineEnabled); | | |||
735 | } | 735 | } | ||
736 | 736 | | |||
737 | if (element.attribute(FILE_NAME).isNull()) { | 737 | if (element.attribute(FILE_NAME).isNull()) { | ||
738 | m_d->layerFilenames[node.data()] = name; | 738 | m_d->layerFilenames[node.data()] = name; | ||
739 | } | 739 | } | ||
740 | else { | 740 | else { | ||
741 | m_d->layerFilenames[node.data()] = element.attribute(FILE_NAME); | 741 | m_d->layerFilenames[node.data()] = element.attribute(FILE_NAME); | ||
742 | } | 742 | } | ||
▲ Show 20 Lines • Show All 412 Lines • Show Last 20 Lines |