Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRASH: Convert to Collider is broken #377

Closed
Weisl opened this issue May 23, 2023 · 0 comments
Closed

CRASH: Convert to Collider is broken #377

Weisl opened this issue May 23, 2023 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@Weisl
Copy link
Owner

Weisl commented May 23, 2023

Traceback (most recent call last):
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_conversion\conversion_operators.py", line 79, in invoke
    super().invoke(context, event)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_shapes\add_bounding_primitive.py", line 1113, in invoke
    self.execute(context)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_conversion\conversion_operators.py", line 140, in execute
    self.primitive_postprocessing(context, new_collider, user_collections)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_shapes\add_bounding_primitive.py", line 839, in primitive_postprocessing
    assign_physics_material(bounding_object, mat_name)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\pyshics_materials\material_functions.py", line 82, in assign_physics_material
    bpy.ops.object.mode_set(mode='OBJECT')
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\modules\bpy\ops.py", line 113, in __call__
    ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() Context missing active object
Error: Python: Traceback (most recent call last):
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_conversion\conversion_operators.py", line 79, in invoke
    super().invoke(context, event)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_shapes\add_bounding_primitive.py", line 1113, in invoke
    self.execute(context)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_conversion\conversion_operators.py", line 140, in execute
    self.primitive_postprocessing(context, new_collider, user_collections)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\collider_shapes\add_bounding_primitive.py", line 839, in primitive_postprocessing
    assign_physics_material(bounding_object, mat_name)
  File "C:\Users\weisl\OneDrive\Dokumente\GitHub\scripts\addons\Collider-Tools\pyshics_materials\material_functions.py", line 82, in assign_physics_material
    bpy.ops.object.mode_set(mode='OBJECT')
  File "C:\Program Files\Blender Foundation\Blender 3.5\3.5\scripts\modules\bpy\ops.py", line 113, in __call__
    ret = _op_call(self.idname_py(), None, kw)
RuntimeError: Operator bpy.ops.object.mode_set.poll() Context missing active object
D8e9n7aWcA.mp4
@Weisl Weisl added this to the 1.3 milestone May 23, 2023
@Weisl Weisl added the bug Something isn't working label May 23, 2023
Weisl added a commit that referenced this issue May 29, 2023
Weisl added a commit that referenced this issue May 29, 2023
#377 Fix crash for convert to collider
@Weisl Weisl closed this as completed May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant