BGE: Fixing memory corruption/double free when duplicating (e.g., addObject) LibLoaded lights.
This commit is contained in:
parent
502f9312d8
commit
88843caaa3
Notes:
blender-bot
2024-01-16 18:05:25 +01:00
Referenced by issue #38515, Menu tooltip description taking over other menus Referenced by issue #38501, blender crashes right after adding image texture to material in cycles Referenced by issue #38503, Blender crash : sengmentation fault (core dumped) Referenced by issue #38507, Inset Faces tool, offset even option doesn't work anymore Referenced by issue #38496, Nurbs Circle not a perfect circle
|
@ -101,6 +101,8 @@ CValue* KX_LightObject::GetReplica()
|
|||
|
||||
replica->m_lightobj.m_light = replica;
|
||||
m_rasterizer->AddLight(&replica->m_lightobj);
|
||||
if (m_base)
|
||||
m_base = NULL;
|
||||
|
||||
return replica;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue