feat: updated godot version
This commit is contained in:
parent
0c508b0831
commit
42b028dbb5
4694 changed files with 236470 additions and 401376 deletions
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include "lightmapper.h"
|
||||
|
||||
Ref<LightmapDenoiser> (*LightmapDenoiser::create_function)() = nullptr;
|
||||
LightmapDenoiser *(*LightmapDenoiser::create_function)() = nullptr;
|
||||
|
||||
Ref<LightmapDenoiser> LightmapDenoiser::create() {
|
||||
if (create_function) {
|
||||
|
|
@ -39,7 +39,7 @@ Ref<LightmapDenoiser> LightmapDenoiser::create() {
|
|||
return Ref<LightmapDenoiser>();
|
||||
}
|
||||
|
||||
Ref<LightmapRaycaster> (*LightmapRaycaster::create_function)() = nullptr;
|
||||
LightmapRaycaster *(*LightmapRaycaster::create_function)() = nullptr;
|
||||
|
||||
Ref<LightmapRaycaster> LightmapRaycaster::create() {
|
||||
if (create_function) {
|
||||
|
|
@ -53,19 +53,19 @@ Lightmapper::CreateFunc Lightmapper::create_gpu = nullptr;
|
|||
Lightmapper::CreateFunc Lightmapper::create_cpu = nullptr;
|
||||
|
||||
Ref<Lightmapper> Lightmapper::create() {
|
||||
Ref<Lightmapper> lm;
|
||||
Lightmapper *lm = nullptr;
|
||||
if (create_custom) {
|
||||
lm = create_custom();
|
||||
}
|
||||
|
||||
if (lm.is_null() && create_gpu) {
|
||||
if (!lm && create_gpu) {
|
||||
lm = create_gpu();
|
||||
}
|
||||
|
||||
if (lm.is_null() && create_cpu) {
|
||||
if (!lm && create_cpu) {
|
||||
lm = create_cpu();
|
||||
}
|
||||
if (lm.is_null()) {
|
||||
if (!lm) {
|
||||
return Ref<Lightmapper>();
|
||||
} else {
|
||||
return Ref<Lightmapper>(lm);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue