Hi all, I've successfully made a Clutter.Texture & displayed it, and am trying to now make a Clutter.Clone of it and display that. However, the Clutter.Clone does not appear on the window (the Texture does).
Here is a minimal working example of my code using Clutter.Rectangle instead of Clutter.Clone (for ease of running). I'm using Clutter's gobject introspection bindings (in javascript in my case). Could anyone tell me why the first Clutter.Rectangle is visible, but I can't see its Clutter.Clone? cheers! -------------- START CODE (can run with `gjs file.js`) ---------------- const Clutter = imports.gi.Clutter; Clutter.init(null); var Stage = Clutter.Stage.new(); Stage.set_size( 200, 200 ); Stage.show() /* create a rectangle */ let blue = new Clutter.Color({blue: 255, red:0, green:0, alpha:255}); let rect = new Clutter.Rectangle(); rect.set_color( blue ); rect.set_size( 50, 50 ); rect.set_position( 20, 20 ); Stage.add_actor( rect ); rect.show(); // this works; I can see the rectangle /* create a clone of the rectangle */ let clone = new Clutter.Clone(rect); clone.set_position(100,100); Stage.add_actor( clone ); clone.show(); // this runs without error, but I do not see any second rectangle! Clutter.main(); -------------- END CODE ---------------- _______________________________________________ clutter-app-devel-list mailing list clutter-app-devel-list@clutter-project.org http://lists.clutter-project.org/listinfo/clutter-app-devel-list