MantisBT - opensim
View Issue Details
0008117opensim[REGION] Script Functionspublic2017-01-07 21:432019-02-06 11:29
makopoppo 
UbitUmarov 
normalminoralways
closedfixed 
0.9.0 
master (dev code) 
Standalone (1 Region)
BulletSim
Mono / Linux64
Other
0008117: llSetPhysicsMaterial cannot be virtually used due to the compilation error.
When I use llSetPhysicsMaterial() LSL function from any viewer, compilation process fails showing error message:
---------
Error CS1502: The best overloaded method match for 'OpenSim.Region.ScriptEngine.Shared.ScriptBase.ScriptBaseClass.llSetPhysicsMaterial(int, float, float, float, float)' has some invalid arguments
Error CS1503: Argument `0000002' cannot convert `float' expression to type `float'
---------
Looking into ILSL_Api.cs, I found that llSetPhysicsMaterial was defined as the following:

----
void llSetPhysicsMaterial(int material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density);
----

Since there is no other functions which has float value in arguments, I suspect that the parse logic concerning to float type has any flaw, or LSL_Float or double type should be used instead.
No tags attached.
Issue History
2017-01-07 21:43makopoppoNew Issue
2017-01-07 22:13BillBlightNote Added: 0031544
2017-01-07 22:14BillBlightNote Edited: 0031544bug_revision_view_page.php?rev_id=5926
2017-01-07 22:16BillBlightNote Deleted: 0031544
2017-01-07 22:20makopoppoAdditional Information Updatedbug_revision_view_page.php?rev_id=5928#r5928
2017-01-08 03:20UbitUmarovNote Added: 0031545
2017-01-08 07:34makopoppoNote Added: 0031546
2017-01-08 07:35makopoppoAssigned To => UbitUmarov
2017-01-08 07:35makopoppoStatusnew => resolved
2017-01-08 07:35makopoppoResolutionopen => fixed
2017-01-08 07:35makopoppoFixed in Version => master (dev code)
2019-02-06 11:29BillBlightNote Added: 0034462
2019-02-06 11:29BillBlightStatusresolved => closed

Notes
(0031545)
UbitUmarov   
2017-01-08 03:20   
Thanks.
You are right, changed to LSL_Float on master
(0031546)
makopoppo   
2017-01-08 07:34   
I confirmed that this issue was fixed in OpenSim 0.9.1.0 Dev 90dee2f build.
Thank you!
(0034462)
BillBlight   
2019-02-06 11:29   
Marked as Resolved but never closed, can be reopened if needed.