Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008949opensim[REGION] Script Functionspublic2021-12-07 05:212021-12-07 06:15
Reportergoncaloperes 
Assigned To 
PriorityurgentSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOpenSim 0.9.2.dev.493d281Operating SystemOperating System Version
Product Version 
Target VersionFixed in Version 
Summary0008949: Dialog boxes not appearing for animated meshes
DescriptionIf Animated Mesh is selected the dialog boxes are not being displayed.

See script in Additional Information as an example.

If we untick the "Animated Mesh", the dialog boxes are shown.

However, for my purpose, I want the dialog box to appear if Animated Meshes are ticked, else I cannot get the object to play animations.
Steps To ReproduceUpload a model
1. Build>Upload>Mesh Model and add it to the region.
2. Access the object/model Edit panel>Features and select Animated Mesh.
3. Place the script in the Content section of the object.
4. Get out of the Edit panel, and click the object. The dialog box won't show up.

If one unticks the Animated Mesh in the Edit panel>Features, and if we click the object, the dialog box will show up.
Additional Informationstring mainMenuDialog = "\nHello friend, here you'll find how to interact with me.\nClick \"Close\" to close the menu.\n\nYou are here:\nMainmenu";
list mainMenuButtons = ["Video 1", "Video 2", "Close"];

integer dialogChannel;
integer dialogHandle;
 
open_menu(key inputKey, string inputString, list inputList)
{
    dialogChannel = (integer)llFrand(DEBUG_CHANNEL)*-1;
    dialogHandle = llListen(dialogChannel, "", inputKey, "");
    llDialog(inputKey, inputString, inputList, dialogChannel);
    llSetTimerEvent(45.0);
}
 
close_menu()
{
    llSetTimerEvent(0.0);// you can use 0 as well to save memory
    llListenRemove(dialogHandle);
}
 
default
{
 
    touch_start(integer total_number)
    {
        key id = llDetectedKey(0);
        // Ensure any outstanding listener is removed before creating a new one
        close_menu();
        open_menu(id, mainMenuDialog, mainMenuButtons);
        llStartObjectAnimation("Wave");
        llSay(0, "Hello friend!");
    }
 
    listen(integer channel, string name, key id, string message)
    {
         if (message == "Video 1")
        {
            llSay(0, "Check the link over there.");
            llStartObjectAnimation("Wave");
            string info = "Visit Gonçalo's website!";
            // must start with either "http://..." [^] or "https://..." [^]
            string url = "https://goncaloperes.com"; [^]
            llLoadURL(id, info, url);
            
            //maybe not re-open the menu for this option?
            //open_menu(id, subMenu_02_Dialog, subMenu_02_Buttons);
            
            close_menu();
        }
        else if (message == "Video 2")
        {
            llSay(0, "Check the link over there.");
            llStartObjectAnimation("RobPoint");
            string info = "Visit Gonçalo's Website!";
            // must start with either "http://..." [^] or "https://..." [^]
            string url = "https://goncaloperes.com"; [^]
            llLoadURL(id, info, url);
            
            //maybe not re-open the menu for this option?
            // open_menu(id, subMenu_02_Dialog, subMenu_02_Buttons);
            
            close_menu();
        }
    }
 
    timer()
    {
        close_menu();
    }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Standalone (Multiple Regions)
Physics EngineBulletSim
Script EngineYEngine
EnvironmentMono / Linux64
Mono Version6.x
ViewerFirestorm 64.6.4.21.64531
Attached Files

- Relationships

-  Notes
(0038278)
Aaack (reporter)
2021-12-07 05:23

I can reproduce this, however you can right click -> touch it.
But while in animated mesh mode you can't also select a face of the mesh, you need to deactivate the animated mode in order to select a single face.
(0038279)
UbitUmarov (administrator)
2021-12-07 05:28

Think the problem is that it is very hard to touch a animated object.
This mostly a viewer side problem
(0038280)
goncaloperes (reporter)
2021-12-07 06:15

@UbitUmarov I don't think it is a viewer problem, as I've tried with the same viewer on version opensim-0.9.1.1 and the dialog box opens if Animated Mesh is selected.

- Issue History
Date Modified Username Field Change
2021-12-07 05:21 goncaloperes New Issue
2021-12-07 05:23 Aaack Note Added: 0038278
2021-12-07 05:28 UbitUmarov Note Added: 0038279
2021-12-07 06:15 goncaloperes Note Added: 0038280


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker