Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-01 21:55:17 +0300
committerHans Goudey <h.goudey@me.com>2022-04-01 21:55:17 +0300
commit11c6d4e88eb9190826833390d577f9fffb45e971 (patch)
tree930aa2b3389a19417de060822feb598c4bf524e3 /source
parentf688e3cc3130e70e77f0bb050cd71cf1549c765c (diff)
Cleanup: Remove unused boundbox flag
This flag hasn't been used for around four years. The convention in this header seems to be commenting out the flag and adding "UNUSED" after it.
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/space_view3d/view3d_utils.c7
-rw-r--r--source/blender/makesdna/DNA_object_types.h2
2 files changed, 1 insertions, 8 deletions
diff --git a/source/blender/editors/space_view3d/view3d_utils.c b/source/blender/editors/space_view3d/view3d_utils.c
index 3e788f2d643..744fc61ddcf 100644
--- a/source/blender/editors/space_view3d/view3d_utils.c
+++ b/source/blender/editors/space_view3d/view3d_utils.c
@@ -409,9 +409,6 @@ bool ED_view3d_boundbox_clip_ex(const RegionView3D *rv3d, const BoundBox *bb, fl
if (bb == NULL) {
return true;
}
- if (bb->flag & BOUNDBOX_DISABLED) {
- return true;
- }
mul_m4_m4m4(persmatob, (float(*)[4])rv3d->persmat, obmat);
@@ -423,10 +420,6 @@ bool ED_view3d_boundbox_clip(RegionView3D *rv3d, const BoundBox *bb)
if (bb == NULL) {
return true;
}
- if (bb->flag & BOUNDBOX_DISABLED) {
- return true;
- }
-
return view3d_boundbox_clip_m4(bb, rv3d->persmatob);
}
diff --git a/source/blender/makesdna/DNA_object_types.h b/source/blender/makesdna/DNA_object_types.h
index 838a4ed2818..30f80110f6e 100644
--- a/source/blender/makesdna/DNA_object_types.h
+++ b/source/blender/makesdna/DNA_object_types.h
@@ -93,7 +93,7 @@ typedef struct BoundBox {
/** #BoundBox.flag */
enum {
- BOUNDBOX_DISABLED = (1 << 0),
+ /* BOUNDBOX_DISABLED = (1 << 0), */ /* UNUSED */
BOUNDBOX_DIRTY = (1 << 1),
};