diff options
author | Jeroen Bakker <jbakker> | 2022-07-08 13:07:08 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-07-08 13:08:31 +0300 |
commit | a8f7d41d3898a8d3ae8afb4f95ea9f4f44db2a69 (patch) | |
tree | b965e51a0b44c3a301fbf98a22da953031616f1c /source/blender/editors | |
parent | 2c4dfe3453f09a0877a9c825347df1aef128bea8 (diff) |
Draw: Curve outline drawing in object mode.
This patch adds (selected/active) outline around a curve object in object mode.
{F13270680}
In the past the draw bounds option was enabled for any curve objects. With this
patch it isn't needed and will be disabled.
In the future the curve outline could also be enabled to improve GPU selection.
Reviewed By: dfelinto, HooglyBoogly, fclem
Maniphest Tasks: T95933
Differential Revision: https://developer.blender.org/D15308
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/curves/intern/curves_ops.cc | 1 | ||||
-rw-r--r-- | source/blender/editors/object/object_add.cc | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/curves/intern/curves_ops.cc b/source/blender/editors/curves/intern/curves_ops.cc index cffa590470f..5dfadca5b63 100644 --- a/source/blender/editors/curves/intern/curves_ops.cc +++ b/source/blender/editors/curves/intern/curves_ops.cc @@ -465,7 +465,6 @@ static int curves_convert_from_particle_system_exec(bContext *C, wmOperator *UNU } Object *ob_new = BKE_object_add(&bmain, &view_layer, OB_CURVES, psys_eval->name); - ob_new->dtx |= OB_DRAWBOUNDOX; /* TODO: Remove once there is actual drawing. */ Curves *curves_id = static_cast<Curves *>(ob_new->data); BKE_object_apply_mat4(ob_new, ob_from_orig->obmat, true, false); bke::CurvesGeometry::wrap(curves_id->geometry) = particles_to_curves(*ob_from_eval, *psys_eval); diff --git a/source/blender/editors/object/object_add.cc b/source/blender/editors/object/object_add.cc index 64026f7b06b..e712b6e9d32 100644 --- a/source/blender/editors/object/object_add.cc +++ b/source/blender/editors/object/object_add.cc @@ -2044,7 +2044,6 @@ static int object_curves_random_add_exec(bContext *C, wmOperator *op) } Object *object = ED_object_add_type(C, OB_CURVES, nullptr, loc, rot, false, local_view_bits); - object->dtx |= OB_DRAWBOUNDOX; /* TODO: remove once there is actual drawing. */ Curves *curves_id = static_cast<Curves *>(object->data); bke::CurvesGeometry::wrap(curves_id->geometry) = ed::curves::primitive_random_sphere(500, 8); @@ -2081,7 +2080,6 @@ static int object_curves_empty_hair_add_exec(bContext *C, wmOperator *op) Object *surface_ob = CTX_data_active_object(C); Object *object = ED_object_add_type(C, OB_CURVES, nullptr, loc, rot, false, local_view_bits); - object->dtx |= OB_DRAWBOUNDOX; /* TODO: remove once there is actual drawing. */ if (surface_ob != nullptr && surface_ob->type == OB_MESH) { Curves *curves_id = static_cast<Curves *>(object->data); |