Reworked how servers preallocate RIDs, should fix #10970
This commit is contained in:
parent
0de6cba7e7
commit
192a4d7de5
27 changed files with 196 additions and 99 deletions
|
|
@ -299,7 +299,7 @@ public:
|
|||
VisualServer *vs = VisualServer::get_singleton();
|
||||
|
||||
/* LIGHT */
|
||||
RID lightaux = vs->light_create(VisualServer::LIGHT_DIRECTIONAL);
|
||||
RID lightaux = vs->directional_light_create();
|
||||
scenario = vs->scenario_create();
|
||||
vs->light_set_shadow(lightaux, true);
|
||||
light = vs->instance_create2(lightaux, scenario);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue