Skip to content

Commit 1e711f6

Browse files
fixing some comments
1 parent e172e45 commit 1e711f6

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/ansys/geometry/core/_grpc/_services/v0/bodies.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import grpc
2525
import pint
2626

27-
from ansys.geometry.core import USE_TRACKER_TO_UPDATE_DESIGN
27+
import ansys.geometry.core as pyansys_geom
2828
from ansys.geometry.core.errors import protect_grpc
2929
from ansys.geometry.core.misc.auxiliary import get_design_from_body
3030
from ansys.geometry.core.misc.measurements import DEFAULT_UNITS
@@ -722,10 +722,10 @@ def boolean(self, **kwargs) -> dict: # noqa: D102
722722
tool_bodies=[other.id for other in kwargs["other"]],
723723
method=kwargs["method"],
724724
)
725-
if USE_TRACKER_TO_UPDATE_DESIGN:
725+
if pyansys_geom.USE_TRACKER_TO_UPDATE_DESIGN:
726726
request.keep_other = kwargs["keep_other"]
727727
resp = self.stub.Boolean(request=request)
728-
if USE_TRACKER_TO_UPDATE_DESIGN:
728+
if pyansys_geom.USE_TRACKER_TO_UPDATE_DESIGN:
729729
parent_design = get_design_from_body(kwargs["target"])
730730
serialized_tracker_response = parent_design._serialize_tracker_command_response(
731731
resp.response

src/ansys/geometry/core/designer/design.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,6 @@ def _handle_deleted_bodies(self, deleted_bodies):
13921392
for body in self.bodies:
13931393
if body.id == body_id:
13941394
body._is_alive = False
1395-
# self.bodies.remove(body)
13961395
for bd in self._master_component.part.bodies:
13971396
if bd.id == body_id:
13981397
self._master_component.part.bodies.remove(bd)
@@ -1427,7 +1426,6 @@ def _handle_created_bodies(self, created_bodies):
14271426
added = self._find_and_add_body(body_info, self.components)
14281427
if not added:
14291428
new_body = MasterBody(body_id, body_name, self._grpc_client, is_surface=is_surface)
1430-
# self.bodies.append(new_body)
14311429
self._master_component.part.bodies.append(new_body)
14321430
self._clear_cached_bodies()
14331431
self._grpc_client.log.debug(

0 commit comments

Comments
 (0)