Provide quick access to Object ancestry

This commit is contained in:
lawnjelly
2025-06-22 23:08:23 +01:00
parent d7bdc0be16
commit 14a814586a
18 changed files with 86 additions and 9 deletions

View File

@@ -204,6 +204,8 @@ RID VisualInstance3D::get_base() const {
}
VisualInstance3D::VisualInstance3D() {
_define_ancestry(AncestralClass::VISUAL_INSTANCE_3D);
instance = RenderingServer::get_singleton()->instance_create();
RenderingServer::get_singleton()->instance_attach_object_instance_id(instance, get_instance_id());
_set_notify_transform_when_fti_off(true);
@@ -645,6 +647,7 @@ void GeometryInstance3D::_bind_methods() {
}
GeometryInstance3D::GeometryInstance3D() {
_define_ancestry(AncestralClass::GEOMETRY_INSTANCE_3D);
}
GeometryInstance3D::~GeometryInstance3D() {