Skip to content

Commit 97e7e31

Browse files
committed
add Object::contained_objects
1 parent 33b48c9 commit 97e7e31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/PDL/Graphics/TriD/Object.pm

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ sub add_object {
6060
$object->add_changedsub(sub {$this->changed_from_above()});
6161
}
6262

63+
sub contained_objects {
64+
my ($this) = @_;
65+
@{$this->{Objects}};
66+
}
67+
6368
sub changed_from_above {
6469
my($this) = @_;
6570
print "CHANGED_FROM_ABOVE\n" if $PDL::Graphics::TriD::verbose;

0 commit comments

Comments
 (0)