| |
| |
|
|
| #include "toonz/textureutils.h" |
| |
| #include "toonz/txsheethandle.h" |
| |
| |
| |
| |
| |
| TXsheetHandle::TXsheetHandle() |
| : m_xsheet(0) |
| { |
| } |
| |
| |
| |
| TXsheetHandle::~TXsheetHandle() |
| { |
| } |
| |
| |
| |
| TXsheet *TXsheetHandle::getXsheet() const |
| { |
| return m_xsheet; |
| } |
| |
| |
| |
| void TXsheetHandle::setXsheet(TXsheet *xsheet) |
| { |
| if (m_xsheet == xsheet) |
| return; |
| |
| m_xsheet = xsheet; |
| |
| if (m_xsheet) { |
| texture_utils::invalidateTextures(m_xsheet); |
| emit xsheetSwitched(); |
| } |
| } |
| |