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

Method py__init__

trinity/RenderJob/TriStepSetVariableStore_Blue.cpp:17–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15// --------------------------------------------------------------------------------------
16#if BLUE_WITH_PYTHON
17void TriStepSetVariableStore::py__init__( Be::Optional<std::string> name, PyObject* value )
18{
19 if( name.IsAssigned() )
20 {
21 SetName( name );
22 }
23 if( value && value != Py_None )
24 {
25 SetValue( value );
26 }
27}
28
29PyObject* TriStepSetVariableStore::GetValue()
30{

Callers

nothing calls this directly

Calls 1

SetValueFunction · 0.85

Tested by

no test coverage detected