Skip to content

Commit

Permalink
Merge pull request #93354 from AThousandShips/fix_occluder_hierarchy
Browse files Browse the repository at this point in the history
Fix invalid inheritance of `OccluderInstance3D`
  • Loading branch information
akien-mga committed Jun 20, 2024
2 parents 2c5145f + 0ae4298 commit 8f739cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/classes/OccluderInstance3D.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
<class name="OccluderInstance3D" inherits="Node3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<class name="OccluderInstance3D" inherits="VisualInstance3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
<brief_description>
Provides occlusion culling for 3D nodes, which improves performance in closed areas.
</brief_description>
Expand Down
2 changes: 1 addition & 1 deletion scene/3d/occluder_instance_3d.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class PolygonOccluder3D : public Occluder3D {
};

class OccluderInstance3D : public VisualInstance3D {
GDCLASS(OccluderInstance3D, Node3D);
GDCLASS(OccluderInstance3D, VisualInstance3D);

private:
Ref<Occluder3D> occluder;
Expand Down

0 comments on commit 8f739cc

Please sign in to comment.