MCPcopy Create free account
hub / github.com/LibreSprite/LibreSprite / link

Method link

src/doc/cel.cpp:96–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96std::shared_ptr<Cel> Cel::link() const
97{
98 ASSERT(m_data);
99 if (m_data.get() == NULL)
100 return NULL;
101
102 if (!m_data.unique()) {
103 for (frame_t fr=0; fr<m_frame; ++fr) {
104 auto possible = m_layer->cel(fr);
105 if (possible && possible->dataRef().get() == m_data.get())
106 return possible;
107 }
108 }
109
110 return NULL;
111}
112
113std::size_t Cel::links() const
114{

Callers 8

captureSamplesMethod · 0.80
cropSpriteMethod · 0.80
onJobMethod · 0.80
paintLinkLabelMethod · 0.80
ase_file_write_celsFunction · 0.80
ase_file_write_cel_chunkFunction · 0.80
pasteFunction · 0.80
write_layerFunction · 0.80

Calls 4

uniqueMethod · 0.80
dataRefMethod · 0.80
getMethod · 0.45
celMethod · 0.45

Tested by

no test coverage detected