Merge branch 'blender-v3.0-release'
This commit is contained in:
commit
261bb766fb
|
@ -71,6 +71,14 @@ static void geo_node_collection_info_exec(GeoNodeExecParams params)
|
|||
params.set_output("Geometry", geometry_set_out);
|
||||
return;
|
||||
}
|
||||
const Object *self_object = params.self_object();
|
||||
const bool is_recursive = BKE_collection_has_object_recursive_instanced(collection,
|
||||
(Object *)self_object);
|
||||
if (is_recursive) {
|
||||
params.error_message_add(NodeWarningType::Error, "Collection contains current object");
|
||||
params.set_output("Geometry", geometry_set_out);
|
||||
return;
|
||||
}
|
||||
|
||||
const bNode &bnode = params.node();
|
||||
NodeGeometryCollectionInfo *node_storage = (NodeGeometryCollectionInfo *)bnode.storage;
|
||||
|
@ -79,8 +87,6 @@ static void geo_node_collection_info_exec(GeoNodeExecParams params)
|
|||
|
||||
InstancesComponent &instances = geometry_set_out.get_component_for_write<InstancesComponent>();
|
||||
|
||||
const Object *self_object = params.self_object();
|
||||
|
||||
const bool separate_children = params.get_input<bool>("Separate Children");
|
||||
if (separate_children) {
|
||||
const bool reset_children = params.get_input<bool>("Reset Children");
|
||||
|
|
Loading…
Reference in New Issue