diff --git a/panda/src/pgraph/light.cxx b/panda/src/pgraph/light.cxx index a1e8d7126a..5ae982a62c 100644 --- a/panda/src/pgraph/light.cxx +++ b/panda/src/pgraph/light.cxx @@ -100,7 +100,7 @@ get_vector_to_light(LVector3f &, const LPoint3f &, const LMatrix4f &) { //////////////////////////////////////////////////////////////////// GeomNode *Light:: get_viz() { - CDReader cdata(_cycler); + CDLockedReader cdata(_cycler); if (cdata->_viz_geom_stale) { CDWriter cdata_w(_cycler, cdata); diff --git a/panda/src/pgraph/light.h b/panda/src/pgraph/light.h index 23b3939ffb..c7fe4177ee 100644 --- a/panda/src/pgraph/light.h +++ b/panda/src/pgraph/light.h @@ -25,6 +25,7 @@ #include "luse.h" #include "cycleData.h" #include "cycleDataReader.h" +#include "cycleDataLockedReader.h" #include "cycleDataWriter.h" #include "pipelineCycler.h" #include "updateSeq.h" @@ -118,6 +119,7 @@ private: PipelineCycler _cycler; typedef CycleDataReader CDReader; + typedef CycleDataLockedReader CDLockedReader; typedef CycleDataWriter CDWriter; protected: