Don't serialize editor only omni lights in PropDataLight.

This commit is contained in:
Relintai 2023-02-25 12:13:07 +01:00
parent ee8014d15e
commit 81c9a7f940

View File

@ -51,6 +51,10 @@ void PropDataLight::_processor_process(Ref<PropData> prop_data, Node *node, cons
ERR_FAIL_COND(!i);
if (i->is_editor_only()) {
return;
}
Ref<PropDataLight> l;
l.instance();
l->set_light_color(i->get_color());