changeset 27911:703156b6d602

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().
author Rik <rik@octave.org>
date Sun, 05 Jan 2020 16:16:53 -0800
parents 543520386e1e
children 84d6abff1006
files scripts/plot/appearance/lighting.m
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.