Eevee: Stop depsgraph update callback form allocating unneeded memory
[blender.git] / source / blender / draw / engines / eevee / eevee_engine.c
index e505b705f15bd08de7b35bbb305147e7fc191202..8989213baa03a9ebb90fd37ce3c9303e3bb4c57e 100644 (file)
@@ -290,15 +290,15 @@ static void EEVEE_id_update(void *UNUSED(vedata), ID *id)
        const ID_Type id_type = GS(id->name);
        if (id_type == ID_OB) {
                Object *object = (Object *)id;
-               EEVEE_LightProbeEngineData *ped = EEVEE_lightprobe_data_ensure(object);
+               EEVEE_LightProbeEngineData *ped = EEVEE_lightprobe_data_get(object);
                if (ped != NULL) {
                        ped->need_full_update = true;
                }
-               EEVEE_LampEngineData *led = EEVEE_lamp_data_ensure(object);
+               EEVEE_LampEngineData *led = EEVEE_lamp_data_get(object);
                if (led != NULL) {
                        led->need_update = true;
                }
-               EEVEE_ObjectEngineData *oedata = EEVEE_object_data_ensure(object);
+               EEVEE_ObjectEngineData *oedata = EEVEE_object_data_get(object);
                if (oedata != NULL) {
                        oedata->need_update = true;
                }