Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006873opensim[REGION] Script Functionspublic2013-12-01 16:202013-12-06 01:42
ReporterKayaker Magic 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSGrid, Virtual HighwayOSOS Version0.7.5, 0.7.6, 08
Product Versionmaster (dev code) 
Target VersionFixed in Version 
Summary0006873: llSetClickAction in root does not over-ride the child prims
DescriptionAccording to the wiki, llSetClickAction "When set in the root of an object the chosen CLICK_ACTION_* will be that for the children also even if they have their own llSetClickAction set (it will be over-ridden)."

However, in Open Sim llSetClickAction behaves the same in the root as it does in the child prims: It only sets the click action of the root prim and leaves the child prims with whatever click action they already have.

I tried this in OSgrid in several different SIMs with several different versions.
I tried this in SL and InWorldz and saw the expected behavior.
Steps To ReproduceMake two prims, link them together, put the following script in the root.
Wave the cursor over the two prims, both will show the touch icon.
Click on the root prim, and wave the cursor over the prims again.
You will see that the cursor shows the buy icon on the root, but still shows the touch icon over the child prim.
(you can right-click and select touch to reset the experiment)
Additional Informationinteger set=0;

default
{
    touch_start(integer total_number)
    {
        set=set^1;
        if (set==0) llSetClickAction(CLICK_ACTION_SIT);
        else llSetClickAction(CLICK_ACTION_BUY);
    }
}
TagsNo tags attached.
Git Revision or version number
Run Mode Grid (Multiple Regions per Sim)
Physics EngineBulletSim
Script Engine
EnvironmentUnknown
Mono VersionOther
ViewerFireStorm, Singularity
Attached Files

- Relationships

-  Notes
(0024816)
justincc (administrator)
2013-12-05 16:04

I presume that if you remove the click action from the root then the children should also lose it?
(0024839)
Kayaker Magic (reporter)
2013-12-06 01:42
edited on: 2013-12-06 01:43

Remove the click action? I presume you mean change the click action to CLICK_ACTION_NONE. I tried changing back and forth between different pairs of click action constants in SL, including CLICK_ACTION_NONE. I didn't always get the cursor I expected, but the root and the child always changed at the same time. The call in the root always over-rides the last setting in the child prims.


- Issue History
Date Modified Username Field Change
2013-12-01 16:20 Kayaker Magic New Issue
2013-12-05 16:04 justincc Note Added: 0024816
2013-12-06 01:42 Kayaker Magic Note Added: 0024839
2013-12-06 01:43 Kayaker Magic Note Edited: 0024839 View Revisions


Copyright © 2000 - 2012 MantisBT Group
Powered by Mantis Bugtracker