Logic Machine Forum
Scene can survive its own object deletion - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Scene can survive its own object deletion (/showthread.php?tid=1867)



Scene can survive its own object deletion - Thomas - 26.01.2019

Hello
I'm afraid I've found a bug.
Scene can survive deleting of its own triggering object. And when the previously deleted group object is back (doesn't matter it has now different meaning, name, datatype etc) the object is connected to the newly created object.
This is dangerous and unexpected behavior.

How to repeat this bug:
1. Create new object 7/6/55 data type switch named "scenes bug test"
2. Create new scene triggered by 7/6/55 named "scenes bug test scene"
3. Delete 7/6/55
4. Create new object 7/6/55 data type date named "scenes bug test"

Now you can see in your scenes screen "scenes bug test scene" has trigger object 7/6/55


RE: Scene can survive its own object deletion - Erwin van der Zwart - 27.01.2019

Hi,

This is not a bug, everything in the controller works like that, if you remove a object that is attached to a script or visu element and recreate the object it's also attached to the script or visu object again.

BR,

Erwin


RE: Scene can survive its own object deletion - Thomas - 27.01.2019

OK but you can't create new script without group object or tag. Group object address desn't disappear from the script you had created before you deleted the object.
On the other side:
You can create a new scene without triggering group object.
Scene created with triggering group object which has been deleted looks like scene without group object. Already deleted group object address disappears from triggering object field of the scene. So you don't expect anything wrong.
And as I wrote above: After you re-create the previously deleted object scene get connected to this object.


RE: Scene can survive its own object deletion - Daniel - 29.01.2019

Rare case but yes you are right.