Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_snap_object.c
| Show First 20 Lines • Show All 389 Lines • ▼ Show 20 Lines | static void iter_snap_objects(SnapObjectContext *sctx, | ||||
| const bool use_backface_culling = params->use_backface_culling; | const bool use_backface_culling = params->use_backface_culling; | ||||
| Base *base_act = view_layer->basact; | Base *base_act = view_layer->basact; | ||||
| for (Base *base = view_layer->object_bases.first; base != NULL; base = base->next) { | for (Base *base = view_layer->object_bases.first; base != NULL; base = base->next) { | ||||
| if (!BASE_VISIBLE(v3d, base)) { | if (!BASE_VISIBLE(v3d, base)) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| if (base->flag_legacy & BA_TRANSFORM_LOCKED_IN_PLACE) { | if (snap_select == SNAP_ALL || base->flag_legacy & BA_TRANSFORM_LOCKED_IN_PLACE) { | ||||
| /* pass */ | /* pass */ | ||||
| } | } | ||||
| else if (base->flag_legacy & BA_SNAP_FIX_DEPS_FIASCO) { | else if (base->flag_legacy & BA_SNAP_FIX_DEPS_FIASCO) { | ||||
| continue; | continue; | ||||
| } | } | ||||
| const bool is_object_active = (base == base_act); | const bool is_object_active = (base == base_act); | ||||
| if (snap_select == SNAP_NOT_SELECTED) { | if (snap_select == SNAP_NOT_SELECTED) { | ||||
| ▲ Show 20 Lines • Show All 2,870 Lines • Show Last 20 Lines | |||||