| 106 | } |
| 107 | |
| 108 | bool LightProbeCollection::SetNegative(int id, bool negative) { |
| 109 | LightProbe* probe = GetProbeFromID(id); |
| 110 | if (probe) { |
| 111 | probe->negative = negative; |
| 112 | LightProbeUpdateEntry entry; |
| 113 | entry.id = id; |
| 114 | entry.pass = 0; |
| 115 | to_process.push(entry); |
| 116 | tet_mesh_needs_update = true; |
| 117 | return true; |
| 118 | } else { |
| 119 | return false; |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | bool LightProbeCollection::DeleteProbe(int id) { |
| 124 | for (int i = 0, len = light_probes.size(); i < len; ++i) { |