MCPcopy Create free account
hub / github.com/carbonengine/trinity / CopyValue

Method CopyValue

trinity/TriValueBinding.cpp:34–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void TriValueBinding::CopyValue()
35{
36 if( !m_isEnabled )
37 {
38 return;
39 }
40
41 if( m_isWeak )
42 {
43 if( !m_sourceObjectWeak || !m_destinationObjectWeak )
44 {
45 return;
46 }
47 }
48
49 if( m_copyFunc )
50 {
51 if( m_copyFunc( (Be::Var*)m_source, (Be::Var*)m_destination, m_scale, m_offset ) )
52 {
53 if( m_notifyPtr )
54 {
55 m_notifyPtr->OnModified( (Be::Var*)m_destination );
56 }
57 }
58 }
59 else if( m_copyValueCallable )
60 {
61 m_copyValueCallable.CallVoid( GetCurrentSourceObject(), GetCurrentDestinationObject() );
62 }
63}
64
65bool TriValueBinding::OnModified( Be::Var* val )
66{

Callers 5

UpdateMethod · 0.45
ApplyMethod · 0.45
PrepareRenderMethod · 0.45
UpdateAsyncronousMethod · 0.45
PropagateMethod · 0.45

Calls 1

OnModifiedMethod · 0.45

Tested by

no test coverage detected