42 if (cam ==
nullptr || cam->type !=
CAM_CUSTOM) {
47 return cam->custom_filepath[0] !=
'\0';
49 return cam->custom_shader !=
nullptr;
72 ot->
name =
"Custom Camera Update";
73 ot->
description =
"Update custom camera with new parameters from the shader";
74 ot->
idname =
"OBJECT_OT_camera_custom_update";
static bool object_camera_custom_update_poll(bContext *C)
static wmOperatorStatus object_camera_custom_update_exec(bContext *C, wmOperator *op)
Object * context_active_object(const bContext *C)
void OBJECT_OT_camera_custom_update(wmOperatorType *ot)
@ CAM_CUSTOM_SHADER_EXTERNAL
RenderEngineType * CTX_data_engine_type(const bContext *C)
void RE_engine_free(RenderEngine *engine)
RenderEngine * RE_engine_create(RenderEngineType *type)
void(*) update_custom_camera(struct RenderEngine *engine, struct Camera *cam)
struct ReportList * reports
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
bool(*) poll(bContext *C) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports