58 static void rna_ViewLayer_active_layer_collection_set(
PointerRNA *
ptr,
77 static void rna_LayerObjects_active_object_set(
PointerRNA *
ptr,
85 if (basact_test !=
NULL) {
86 view_layer->
basact = basact_test;
91 "ViewLayer '%s' does not contain object '%s'",
103 const size_t rna_path_buffer_size)
105 char name_esc[
sizeof(view_layer->
name) * 2];
108 return BLI_snprintf_rlen(r_rna_path, rna_path_buffer_size,
"view_layers[\"%s\"]", name_esc);
114 char rna_path[
sizeof(view_layer->
name) * 3];
142 static void rna_ViewLayer_update_render_passes(
ID *
id)
167 Base *base = (
Base *)internal->link;
175 Base *base = (
Base *)internal->link;
200 iter, &view_layer->
object_bases, rna_ViewLayer_objects_selected_skip);
203 static void rna_ViewLayer_update_tagged(
ID *id_ptr,
235 static void rna_ObjectBase_select_update(
Main *
UNUSED(bmain),
253 static void rna_LayerCollection_name_get(
struct PointerRNA *
ptr,
char *value)
262 return strlen(
id->
name + 2);
265 static void rna_LayerCollection_flag_set(
PointerRNA *
ptr,
const bool value,
const int flag)
275 layer_collection->
flag |= flag;
278 layer_collection->
flag &= ~flag;
282 static void rna_LayerCollection_exclude_set(
PointerRNA *
ptr,
bool value)
287 static void rna_LayerCollection_holdout_set(
PointerRNA *
ptr,
bool value)
292 static void rna_LayerCollection_indirect_only_set(
PointerRNA *
ptr,
bool value)
297 static void rna_LayerCollection_hide_viewport_set(
PointerRNA *
ptr,
bool value)
378 prop,
"rna_LayerCollection_name_get",
"rna_LayerCollection_name_length",
NULL);
411 "Objects in collection only contribute indirectly (through shadows and reflections) "
412 "in the view layer");
423 func =
RNA_def_function(srna,
"visible_get",
"rna_LayerCollection_visible_get");
425 "Whether this collection is visible, take into account the "
426 "collection parent and the viewport");
436 "Whether this collection is visible for the view layer, take into "
437 "account the collection parent");
439 func =
RNA_def_function(srna,
"has_objects",
"rna_LayerCollection_has_objects");
444 srna,
"has_selected_objects",
"rna_LayerCollection_has_selected_objects");
447 func,
"view_layer",
"ViewLayer",
"",
"View layer the layer collection belongs to");
465 "rna_LayerObjects_active_object_get",
466 "rna_LayerObjects_active_object_set",
479 "rna_LayerObjects_selected_begin",
480 "rna_iterator_listbase_next",
481 "rna_iterator_listbase_end",
482 "rna_ViewLayer_objects_get",
533 func =
RNA_def_function(srna,
"update_render_passes",
"rna_ViewLayer_update_render_passes");
535 "Requery the enabled render passes from the render engine");
545 "Root of collections hierarchy of this view layer,"
546 "its 'collection' pointer property is the same as the scene's master collection");
551 "rna_ViewLayer_active_layer_collection_get",
552 "rna_ViewLayer_active_layer_collection_set",
557 prop,
"Active Layer Collection",
"Active layer collection in this view layer's hierarchy");
592 func,
"Update data tagged to be updated from previous access to data or operators");
struct Scene * CTX_data_scene(const bContext *C)
struct ViewLayer * CTX_data_view_layer(const bContext *C)
struct View3D * CTX_wm_view3d(const bContext *C)
struct ViewLayer * BKE_view_layer_find_from_collection(const struct Scene *scene, struct LayerCollection *lc)
void BKE_layer_collection_set_flag(struct LayerCollection *lc, int flag, bool value)
bool BKE_layer_collection_activate(struct ViewLayer *view_layer, struct LayerCollection *lc)
#define FOREACH_OBJECT_END
bool BKE_layer_collection_has_selected_objects(struct ViewLayer *view_layer, struct LayerCollection *lc)
struct Base * BKE_view_layer_base_find(struct ViewLayer *view_layer, struct Object *ob)
#define FOREACH_OBJECT_BEGIN(view_layer, _instance)
void BKE_view_layer_verify_aov(struct RenderEngine *engine, struct Scene *scene, struct ViewLayer *view_layer)
int BKE_layer_collection_findindex(struct ViewLayer *view_layer, const struct LayerCollection *lc)
void BKE_layer_collection_sync(const struct Scene *scene, struct ViewLayer *view_layer)
void BKE_reportf(ReportList *reports, eReportType type, const char *format,...) ATTR_PRINTF_FORMAT(3
void BKE_report(ReportList *reports, eReportType type, const char *message)
struct Depsgraph * BKE_scene_get_depsgraph(const struct Scene *scene, const struct ViewLayer *view_layer)
void BKE_scene_graph_update_tagged(struct Depsgraph *depsgraph, struct Main *bmain)
struct Depsgraph * BKE_scene_ensure_depsgraph(struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer)
#define LISTBASE_FOREACH(type, var, list)
size_t BLI_snprintf_rlen(char *__restrict dst, size_t maxncpy, const char *__restrict format,...) ATTR_NONNULL(1
char * BLI_strdup(const char *str) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL() ATTR_MALLOC
char * BLI_strncpy(char *__restrict dst, const char *__restrict src, size_t maxncpy) ATTR_NONNULL()
size_t size_t char size_t BLI_str_escape(char *__restrict dst, const char *__restrict src, size_t dst_maxncpy) ATTR_NONNULL()
#define BPy_BEGIN_ALLOW_THREADS
#define BPy_END_ALLOW_THREADS
struct Depsgraph Depsgraph
void DEG_make_active(struct Depsgraph *depsgraph)
void DEG_id_tag_update(struct ID *id, int flag)
bool DEG_is_evaluating(const struct Depsgraph *depsgraph)
void DEG_relations_tag_update(struct Main *bmain)
Object groups, one object can be in many groups at once.
@ LAYER_COLLECTION_EXCLUDE
@ LAYER_COLLECTION_INDIRECT_ONLY
@ LAYER_COLLECTION_HOLDOUT
@ LAYER_COLLECTION_VISIBLE_VIEW_LAYER
@ LAYER_COLLECTION_HIDE_VIEWPORT
@ LAYER_COLLECTION_HAS_OBJECTS
Object is a sort of wrapper for general info.
#define V3D_LOCAL_COLLECTIONS
void ED_object_base_select(struct Base *base, eObjectSelect_Mode mode)
void ED_object_base_active_refresh(struct Main *bmain, struct Scene *scene, struct ViewLayer *view_layer)
@ PROPOVERRIDE_OVERRIDABLE_LIBRARY
@ PROPOVERRIDE_NO_COMPARISON
const Depsgraph * depsgraph
RenderEngine * RE_engine_create(RenderEngineType *type)
RenderEngineType * RE_engines_find(const char *idname)
void RE_engine_free(RenderEngine *engine)
void ntreeCompositUpdateRLayers(bNodeTree *ntree)
const PointerRNA PointerRNA_NULL
void rna_iterator_listbase_begin(CollectionPropertyIterator *iter, ListBase *lb, IteratorSkipFunc skip)
PointerRNA rna_pointer_inherit_refine(PointerRNA *ptr, StructRNA *type, void *data)
void RNA_def_property_pointer_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_struct_path_func(StructRNA *srna, const char *path)
void RNA_define_animate_sdna(bool animate)
PropertyRNA * RNA_def_boolean(StructOrFunctionRNA *cont_, const char *identifier, bool default_value, const char *ui_name, const char *ui_description)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_boolean_sdna(PropertyRNA *prop, const char *structname, const char *propname, int64_t bit)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_property_string_sdna(PropertyRNA *prop, const char *structname, const char *propname)
void RNA_def_property_ui_icon(PropertyRNA *prop, int icon, int consecutive)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
void RNA_def_property_srna(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_funcs(PropertyRNA *prop, const char *begin, const char *next, const char *end, const char *get, const char *length, const char *lookupint, const char *lookupstring, const char *assignint)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_boolean_funcs(PropertyRNA *prop, const char *get, const char *set)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_property_collection_sdna(PropertyRNA *prop, const char *structname, const char *propname, const char *lengthpropname)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
void RNA_def_property_update(PropertyRNA *prop, int noteflag, const char *func)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_struct_name_property(struct StructRNA *srna, struct PropertyRNA *prop)
void RNA_def_function_flag(FunctionRNA *func, int flag)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_struct_ui_icon(StructRNA *srna, int icon)
void RNA_def_struct_idprops_func(StructRNA *srna, const char *idproperties)
void RNA_def_property_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_override_flag(PropertyRNA *prop, PropertyOverrideFlag flag)
void RNA_def_parameter_flags(PropertyRNA *prop, PropertyFlag flag_property, ParameterFlag flag_parameter)
size_t rna_ViewLayer_path_buffer_get(const struct ViewLayer *view_layer, char *r_rna_path, const size_t rna_path_buffer_size)
void rna_def_freestyle_settings(struct BlenderRNA *brna)
void rna_def_view_layer_common(struct BlenderRNA *brna, struct StructRNA *srna, bool scene)
static void rna_def_object_base(BlenderRNA *brna)
static void rna_def_layer_objects(BlenderRNA *brna, PropertyRNA *cprop)
static void rna_def_layer_collection(BlenderRNA *brna)
void RNA_def_view_layer(BlenderRNA *brna)
ListBaseIterator listbase
union CollectionPropertyIterator::@1147 internal
unsigned short local_collections_bits
struct Collection * collection
void(* update_render_passes)(struct RenderEngine *engine, struct Scene *scene, struct ViewLayer *view_layer)
struct bNodeTree * nodetree
unsigned short local_collections_uuid
struct IDProperty * id_properties
LayerCollection * active_collection
void WM_main_add_notifier(unsigned int type, void *reference)
void WM_event_add_notifier(const bContext *C, uint type, void *reference)