35 if (!
result.should_compute()) {
39 result.allocate_single_value();
46 if (!
result.should_compute()) {
50 result.allocate_single_value();
68 ntype.
ui_description =
"Input the current scene time in seconds or frames";
#define CMP_NODE_SCENE_TIME
#define NOD_REGISTER_NODE(REGISTER_FUNC)
NodeOperation(Context &context, DNode node)
Result & get_result(StringRef identifier)
Context & context() const
NodeOperation(Context &context, DNode node)
void node_register_type(bNodeType &ntype)
static void cmp_node_scene_time_declare(NodeDeclarationBuilder &b)
static NodeOperation * get_compositor_operation(Context &context, DNode node)
static void register_node_type_cmp_scene_time()
void cmp_node_type_base(blender::bke::bNodeType *ntype, std::string idname, const std::optional< int16_t > legacy_type)
std::string ui_description
NodeGetCompositorOperationFunction get_compositor_operation
const char * enum_name_legacy
NodeDeclareFunction declare