GPUOpen-LibrariesAndSDKs / RadeonProRenderBlenderAddon

This hardware-agnostic rendering plug-in for Blender uses accurate ray-tracing technology to produce images and animations of your scenes, and provides real-time interactive rendering and continuous adjustment of effects.
https://gpuopen.com/radeon-prorender-suite/
Apache License 2.0
480 stars 56 forks source link

RPRBLND-2268: emission on Grease pencil provides blender crash #599

Closed VascoPi closed 1 year ago

VascoPi commented 1 year ago

PURPOSE

In general, the issue is related to the new approach of instances sync (https://github.com/GPUOpen-LibrariesAndSDKs/RadeonProRenderBlenderAddon/pull/592) The issue is that we create pyrpr.Instance from pyrpr.Instance. It's not correct and causes the errors below:

EFFECT OF CHANGE

Fixed crash if extruded curve object applied with emission material. Fixed error 'poly_count' after the final render ends.

TECHNICAL STEPS

Made a condition for obj variable in instance.py. now it's instance.object or instance.instance_object. Fixed argument position in instance.sync_update. Code improvements.