# HG changeset patch # User Rik # Date 1578269813 28800 # Node ID 703156b6d6028bd2cd08cc0264a38caf72da3fcc # Parent 543520386e1ee39d99375076e5798f054a4b025e lighting.m: Fix problem with multiple scatter plots (bug #57537). * lighting.m: Use a for loop to get "children" objects from "parents" variable so that a cell array is not created by get(). diff -r 543520386e1e -r 703156b6d602 scripts/plot/appearance/lighting.m --- a/scripts/plot/appearance/lighting.m Sun Jan 05 20:26:16 2020 +0100 +++ b/scripts/plot/appearance/lighting.m Sun Jan 05 16:16:53 2020 -0800 @@ -82,7 +82,10 @@ parents(end+1) = hglist(i); endif endfor - kids = get (parents, "children"); + kids = []; + for i = 1 : numel (parents) + kids = [kids; get(parents(i), "children")]; + endfor endwhile ## FIXME: This is the old, simple code.