Open sl-service-account opened 10 years ago
Maestro Linden commented at 2014-01-21T20:02:06Z
Hi Lucia, thanks for the report. This is actually worse than you think - llModifyLand() modifies the wrong position when called in a child prim, instead of always failing.
For example: 1) Own the parcel in the southwest corner of the sim 2) Rez 2 boxes and link them together. Move the child prim to be offset by <6,4,0> from the root prim. 3) Save this script in the child prim:
default
{
touch_start(integer total_number)
{
llSay(0, "local pos: " + (string)llGetLocalPos() + " region pos: " + (string)llGetPos());
llModifyLand(LAND_RAISE, 0);
}
}
4) Move the linkset to some arbitrary point in the region, far away from your parcel 5) Touch the child prim a few times, and observe where in the sim gets terraformed, if anywhere
Expected results:
Actual results: The terrain at 6, 4 is raised (this corresponds to 'local pos' in the script chat).
Strife Onizuka commented at 2014-01-31T00:56:41Z, updated at 2014-01-31T00:58:00Z
Any chance we could get correct BRUSH constants while we are working on llModifyLand? Maybe even SVC-3272.
Steps to Reproduce
Go to a parcel of land that you own. Rez two boxes. Link together. Drop the following script into the child.
Make sure region/estate allows terraforming and that the land under the prims is not at its maximum terraforming height. Click the child. Notice land does not raise. Unlink the prims and click the prim again. Land should raise.
llModifyLand() does not work in child prims. Wiki makes no mention of it.
Please update wiki if this is expected behaviour. Thanks.
http://wiki.secondlife.com/wiki/LlModifyLand
Expected Behavior
llModifyLand() should work from child prims.
Original Jira Fields
| Field | Value | | ------------- | ------------- | | Issue | BUG-4929 | | Summary | llModifyLand() modifies wrong location in region, when called in a child prim | | Type | Bug | | Priority | Unset | | Status | Accepted | | Resolution | Accepted | | Reporter | Lucia Nightfire (lucia.nightfire) | | Created at | 2014-01-17T13:31:13Z | | Updated at | 2014-03-15T06:08:07Z | ``` { 'Business Unit': ['Platform'], 'Date of First Response': '2014-01-21T14:02:05.938-0600', 'System': 'SL Simulator', 'Target Viewer Version': 'viewer-development', 'What just happened?': 'llModifyLand() does not work in child prims. Wiki makes no mention of it.\r\n\r\nPlease update wiki if this is expected behaviour. Thanks.\r\n\r\nhttp://wiki.secondlife.com/wiki/LlModifyLand', 'What were you doing when it happened?': '?', 'What were you expecting to happen instead?': '?', } ```