Skip to content

Commit

Permalink
Update objects.py comment
Browse files Browse the repository at this point in the history
  • Loading branch information
burrussmp authored Nov 29, 2024
1 parent 02a612f commit 2b5e32f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions kubric/core/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ class FileBasedObject(PhysicalObject):
# accidental deletion of objects from the scene.
#
# This will break certain features of kubric like assigning meterials to
# assets or other functions that expect the asset to be a mesh. Also
# when used with PyBullet for simulations, the non-animated collision mesh is
# used which can lead to unexpected behavior when an animated object is used
# in a physics simulation.
# assets or other functions that expect the asset to be a mesh. For
# example, when assigning segmentation_ids you may want to reconstruct
# kb.Asset recursively on the top-level empty and set the `segmentation_id`.
# Also when used with PyBullet for simulations, the non-animated collision
# mesh is used which can lead to unexpected behavior when an animated object
# is used in a physics simulation.
use_parenting_instead_of_join = tl.Bool(False)

# TODO: trigger error when changing filenames or asset-id after the fact

0 comments on commit 2b5e32f

Please sign in to comment.