You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Change "ID" to lowercase "id"
Reasoning: ID is not an acronym, it is simply short for identification, so it logically should not be capitalized. But even if it was an acronym, other acronyms in Godot are not capitalized, like p_rid, p_ip, and p_json.
This commit is contained in:
@@ -607,12 +607,12 @@ void VisualServerScene::instance_set_transform(RID p_instance, const Transform &
|
||||
instance->transform = p_transform;
|
||||
_instance_queue_update(instance, true);
|
||||
}
|
||||
void VisualServerScene::instance_attach_object_instance_id(RID p_instance, ObjectID p_ID) {
|
||||
void VisualServerScene::instance_attach_object_instance_id(RID p_instance, ObjectID p_id) {
|
||||
|
||||
Instance *instance = instance_owner.get(p_instance);
|
||||
ERR_FAIL_COND(!instance);
|
||||
|
||||
instance->object_ID = p_ID;
|
||||
instance->object_id = p_id;
|
||||
}
|
||||
void VisualServerScene::instance_set_blend_shape_weight(RID p_instance, int p_shape, float p_weight) {
|
||||
|
||||
@@ -791,10 +791,10 @@ Vector<ObjectID> VisualServerScene::instances_cull_aabb(const AABB &p_aabb, RID
|
||||
|
||||
Instance *instance = cull[i];
|
||||
ERR_CONTINUE(!instance);
|
||||
if (instance->object_ID == 0)
|
||||
if (instance->object_id == 0)
|
||||
continue;
|
||||
|
||||
instances.push_back(instance->object_ID);
|
||||
instances.push_back(instance->object_id);
|
||||
}
|
||||
|
||||
return instances;
|
||||
@@ -813,10 +813,10 @@ Vector<ObjectID> VisualServerScene::instances_cull_ray(const Vector3 &p_from, co
|
||||
for (int i = 0; i < culled; i++) {
|
||||
Instance *instance = cull[i];
|
||||
ERR_CONTINUE(!instance);
|
||||
if (instance->object_ID == 0)
|
||||
if (instance->object_id == 0)
|
||||
continue;
|
||||
|
||||
instances.push_back(instance->object_ID);
|
||||
instances.push_back(instance->object_id);
|
||||
}
|
||||
|
||||
return instances;
|
||||
@@ -837,10 +837,10 @@ Vector<ObjectID> VisualServerScene::instances_cull_convex(const Vector<Plane> &p
|
||||
|
||||
Instance *instance = cull[i];
|
||||
ERR_CONTINUE(!instance);
|
||||
if (instance->object_ID == 0)
|
||||
if (instance->object_id == 0)
|
||||
continue;
|
||||
|
||||
instances.push_back(instance->object_ID);
|
||||
instances.push_back(instance->object_id);
|
||||
}
|
||||
|
||||
return instances;
|
||||
|
||||
Reference in New Issue
Block a user