82 RPT_(
"Can't change working space with modified images, save them first"));
112 if (convert_colors) {
113 const bool depsgraph_tag =
true;
180 IFACE_(
"To match renders with the previous working space as closely as possible, "
181 "colors in all materials, lights and geometry must be converted.\n\n"
182 "Some node graphs cannot be converted accurately and may need manual fix-ups."));
187 ot->
name =
"Set Blend File Working Color Space";
188 ot->
idname =
"WM_OT_set_working_color_space";
189 ot->
description =
"Change the working color space of all colors in this blend file";
199 "Convert Colors in All Data-blocks",
200 "Change colors in all data-blocks to the new working space");
206 "Color space to set");
#define IMA_SIGNAL_COLORMANAGE
#define BLT_I18NCONTEXT_COLOR_MANAGEMENT
#define ND_RENDER_OPTIONS
float3x3 scene_linear_to_xyz
float3x3 xyz_to_scene_linear
void cache_cleanup(Scene *scene, CacheCleanup mode)
void WM_main_add_notifier(uint type, void *reference)
void RNA_def_enum_funcs(PropertyRNA *prop, EnumPropertyItemFunc itemfunc)
char * STRNCPY(char(&dst)[N], const char *src)
int RNA_enum_get(PointerRNA *ptr, const char *name)
void BKE_image_signal(Main *bmain, Image *ima, ImageUser *iuser, int signal)
void WM_OT_set_working_color_space(wmOperatorType *ot)
void BKE_movieclip_clear_cache(MovieClip *clip)
void IMB_colormanagement_working_space_items_add(EnumPropertyItem **items, int *totitem)
PropertyRNA * RNA_def_enum(StructOrFunctionRNA *cont_, const char *identifier, const EnumPropertyItem *items, const int default_value, const char *ui_name, const char *ui_description)
void RE_FreeInteractiveCompositorRenders()
void RNA_enum_set(PointerRNA *ptr, const char *name, int value)
static wmOperatorStatus wm_set_working_color_space_invoke(bContext *C, wmOperator *op, const wmEvent *event)
const char * IMB_colormanagement_working_space_get_default()
int IMB_colormanagement_working_space_get_named_index(const char *name)
static bool wm_set_working_space_check_safe(bContext *C, wmOperator *op)
void ED_render_engine_changed(Main *bmain, bool update_scene_data)
void DEG_id_tag_update(ID *id, unsigned int flags)
void BKE_report(ReportList *reports, eReportType type, const char *message)
bool WM_jobs_has_running(const wmWindowManager *window_manager, const void *owner, const eWM_JobType type, const eWM_JobFlag exclude_flags)
wmWindowManager * CTX_wm_manager(const bContext *C)
static const EnumPropertyItem * working_space_itemf(bContext *, PointerRNA *, PropertyRNA *, bool *r_free)
static wmOperatorStatus wm_set_working_color_space_exec(bContext *C, wmOperator *op)
void RNA_enum_item_end(EnumPropertyItem **items, int *totitem)
bool RNA_boolean_get(PointerRNA *ptr, const char *name)
void IMB_colormanagement_working_space_convert(Main *bmain, const float3x3 ¤t_scene_linear_to_xyz, const float3x3 &new_xyz_to_scene_linear, bool depsgraph_tag=false, bool linked_only=false, bool editable_assets_only=false)
const EnumPropertyItem rna_enum_dummy_NULL_items[]
bool IMB_colormanagement_working_space_set_from_name(const char *name)
void RE_FreeAllRenderResults()
void RNA_def_property_translation_context(PropertyRNA *prop, const char *context)
wmOperatorStatus WM_operator_props_popup_confirm_ex(bContext *C, wmOperator *op, const wmEvent *, std::optional< std::string > title, std::optional< std::string > confirm_text, const bool cancel_default, std::optional< std::string > message)
void RE_FreeAllPersistentData()
Main * CTX_data_main(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
const char * IMB_colormanagement_working_space_get_indexed_name(int index)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, const bool default_value, const char *ui_name, const char *ui_description)
void BKE_movieclip_free_gputexture(MovieClip *clip)
bool ED_image_should_save_modified(const Main *bmain)
float3x3 scene_linear_to_xyz
char scene_linear_name[64]
MainColorspace colorspace
ListBaseT< MovieClip > movieclips
ListBaseT< Image > images
ListBaseT< Scene > scenes
wmOperatorStatus(*) exec(bContext *C, wmOperator *op) ATTR_WARN_UNUSED_RESULT
wmOperatorStatus(*) invoke(bContext *C, wmOperator *op, const wmEvent *event) ATTR_WARN_UNUSED_RESULT
struct ReportList * reports