Closed domef closed 2 years ago
Hey,
before I check this out, amazing bug report!
Best, Max
Hey @domef,
thanks for reporting this bug. It should be easily solvable by removing this function: https://github.com/DLR-RM/BlenderProc/blob/main/blenderproc/python/types/LightUtility.py#L29-L34
This function is called, each time an undo operation is executed (e.q. in the physics simulator). As after an undo, all blender references become invalid, we have to reassign them. Apparently for Lights that reassignment did not work properly. By removing the function, the parent function from the Entity class should now be used which is also correct for light objects.
Let me know if you experience any further problems.
This is fixed with 2.1.0
Describe the bug After the physics simulation, the property
blender_obj
ofblenderproc.python.types.LightUtility.Light
object changes type frombpy_types.Object
tobpy.types.PointLight
.General Information
Which BlenderProc verison are you using? 2.0.0a6.
On which operating system are you? Ubuntu 18.04.
Have you checked the issue tracker to see if a similar issue has been opened? Yes.
Have you changed BlenderProc in anyway besides the config file? If yes, are you sure that this change does not affect the problem you are having? No.
To Reproduce This is a minimal code example:
This is the the output:
Since after the simulation the
blender_obj
is a different type I cannot access to the same functions and properties.