mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Provide quick access to Object ancestry
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user