You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Visual/Physics/Navigation Servers validate RIDs with documentation update
This commit is contained in:
@@ -65,6 +65,11 @@ void VisualServerRaster::_draw_margins() {
|
||||
/* FREE */
|
||||
|
||||
void VisualServerRaster::free(RID p_rid) {
|
||||
if (!p_rid.is_valid()) {
|
||||
ERR_FAIL_MSG("Invalid RID.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (VSG::storage->free(p_rid)) {
|
||||
return;
|
||||
}
|
||||
@@ -80,6 +85,8 @@ void VisualServerRaster::free(RID p_rid) {
|
||||
if (VSG::scene_render->free(p_rid)) {
|
||||
return;
|
||||
}
|
||||
|
||||
ERR_FAIL_MSG("Invalid RID.");
|
||||
}
|
||||
|
||||
/* EVENT QUEUING */
|
||||
|
||||
Reference in New Issue
Block a user