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

pass depsgraph to scene.ray_cast in Blender 2.91+ #629

Merged
merged 1 commit into from Feb 21, 2021

Conversation

BeheadedKamikaze
Copy link
Contributor

In Blender 2.91, the Python API changed so that bpy.context.scene.ray_cast() now takes view_layer.depsgraph instead of view_layer as its first argument.

This causes a crash in LuxCore Online Library when dragging an asset from the assetbar in Blender 2.91.

@Theverat
Copy link
Member

Thanks for the fix!

@Theverat Theverat merged commit 31980fa into LuxCoreRender:master Feb 21, 2021
@BeheadedKamikaze BeheadedKamikaze deleted the lol-raycast branch February 21, 2021 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants