Skip to content

Commit

Permalink
fix: collider preview selection logic
Browse files Browse the repository at this point in the history
  • Loading branch information
saturday06 committed Aug 9, 2024
1 parent 55a8108 commit f99da0e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/io_scene_vrm/editor/spring_bone1/property_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,8 @@ def reset_bpy_object(self, context: Context, armature: Object) -> None:

extended = self.extensions.vrmc_spring_bone_extended_collider
if (
self.shape_type == self.SHAPE_TYPE_SPHERE.identifier
not extended.enabled
and self.shape_type == self.SHAPE_TYPE_SPHERE.identifier
or extended.enabled
and extended.shape_type
in [
Expand All @@ -859,7 +860,8 @@ def reset_bpy_object(self, context: Context, armature: Object) -> None:
if self.bpy_object.empty_display_type != empty_display_type:
self.bpy_object.empty_display_type = empty_display_type
elif (
self.shape_type == self.SHAPE_TYPE_CAPSULE.identifier
not extended.enabled
and self.shape_type == self.SHAPE_TYPE_CAPSULE.identifier
or extended.enabled
and extended.shape_type == extended.SHAPE_TYPE_EXTENDED_CAPSULE.identifier
):
Expand Down

0 comments on commit f99da0e

Please sign in to comment.