Fix T38900: cycles OSL crash running getmessage("trace", "geom:name", name)

This commit is contained in:
Brecht Van Lommel 2014-03-01 14:57:25 +01:00
parent 6b693ab7bf
commit 3eabe064ab
Notes: blender-bot 2023-02-14 11:06:10 +01:00
Referenced by issue #38900, Blender Crashes when using 3D view set to RENDER and getmessage ("trace", "geom:name", nameStr); called in OSL
1 changed files with 1 additions and 0 deletions

View File

@ -1001,6 +1001,7 @@ bool OSLRenderServices::trace(TraceOpt &options, OSL::ShaderGlobals *sg,
tracedata->ray = ray;
tracedata->setup = false;
tracedata->init = true;
tracedata->sd.osl_globals = sd->osl_globals;
/* raytrace */
#ifdef __HAIR__