aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorCharles Krinke2008-01-21 03:14:38 +0000
committerCharles Krinke2008-01-21 03:14:38 +0000
commita759ff5ea34bc50542d6ef1e495d990de0004ff1 (patch)
tree66624a9c8434131451bcad8a2e60ebf288da1c9b /OpenSim
parent* Stopped Physical Object saving on SQLite got commented out in my last commi... (diff)
downloadopensim-SC_OLD-a759ff5ea34bc50542d6ef1e495d990de0004ff1.zip
opensim-SC_OLD-a759ff5ea34bc50542d6ef1e495d990de0004ff1.tar.gz
opensim-SC_OLD-a759ff5ea34bc50542d6ef1e495d990de0004ff1.tar.bz2
opensim-SC_OLD-a759ff5ea34bc50542d6ef1e495d990de0004ff1.tar.xz
Surround the "non implemented" in an else clause if face is inappropriate for:
llSetColor, llSetAlpha, llGetColor, llSetTexture, llOffsetTexture, llRotateTexture & llGetTexture
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs50
1 files changed, 34 insertions, 16 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 58e4727..7fce827 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -485,8 +485,10 @@ namespace OpenSim.Region.ScriptEngine.Common
485 m_host.UpdateTexture(tex); 485 m_host.UpdateTexture(tex);
486 return; 486 return;
487 } 487 }
488 NotImplemented("llSetColor"); 488 else
489 return; 489 {
490 NotImplemented("llSetColor");
491 }
490 } 492 }
491 493
492 public double llGetAlpha(int face) 494 public double llGetAlpha(int face)
@@ -532,8 +534,10 @@ namespace OpenSim.Region.ScriptEngine.Common
532 m_host.UpdateTexture(tex); 534 m_host.UpdateTexture(tex);
533 return; 535 return;
534 } 536 }
535 NotImplemented("llSetAlpha"); 537 else
536 return; 538 {
539 NotImplemented("llSetAlpha");
540 }
537 } 541 }
538 542
539 public LSL_Types.Vector3 llGetColor(int face) 543 public LSL_Types.Vector3 llGetColor(int face)
@@ -557,8 +561,11 @@ namespace OpenSim.Region.ScriptEngine.Common
557 rgb.z = (255 - (texcolor.B * 255)) / 255; 561 rgb.z = (255 - (texcolor.B * 255)) / 255;
558 return rgb; 562 return rgb;
559 } 563 }
560 NotImplemented("llGetColor"); 564 else
561 return new LSL_Types.Vector3(); 565 {
566 NotImplemented("llGetColor");
567 return new LSL_Types.Vector3();
568 }
562 } 569 }
563 570
564 public void llSetTexture(string texture, int face) 571 public void llSetTexture(string texture, int face)
@@ -586,8 +593,10 @@ namespace OpenSim.Region.ScriptEngine.Common
586 m_host.UpdateTexture(tex); 593 m_host.UpdateTexture(tex);
587 return; 594 return;
588 } 595 }
589 NotImplemented("llSetTexture"); 596 else
590 return; 597 {
598 NotImplemented("llSetTexture");
599 }
591 } 600 }
592 601
593 public void llScaleTexture(double u, double v, int face) 602 public void llScaleTexture(double u, double v, int face)
@@ -617,8 +626,10 @@ namespace OpenSim.Region.ScriptEngine.Common
617 m_host.UpdateTexture(tex); 626 m_host.UpdateTexture(tex);
618 return; 627 return;
619 } 628 }
620 NotImplemented("llScaleTexture"); 629 else
621 return; 630 {
631 NotImplemented("llScaleTexture");
632 }
622 } 633 }
623 634
624 public void llOffsetTexture(double u, double v, int face) 635 public void llOffsetTexture(double u, double v, int face)
@@ -648,8 +659,10 @@ namespace OpenSim.Region.ScriptEngine.Common
648 m_host.UpdateTexture(tex); 659 m_host.UpdateTexture(tex);
649 return; 660 return;
650 } 661 }
651 NotImplemented("llOffsetTexture"); 662 else
652 return; 663 {
664 NotImplemented("llOffsetTexture");
665 }
653 } 666 }
654 667
655 public void llRotateTexture(double rotation, int face) 668 public void llRotateTexture(double rotation, int face)
@@ -676,8 +689,10 @@ namespace OpenSim.Region.ScriptEngine.Common
676 m_host.UpdateTexture(tex); 689 m_host.UpdateTexture(tex);
677 return; 690 return;
678 } 691 }
679 NotImplemented("llRotateTexture"); 692 else
680 return; 693 {
694 NotImplemented("llRotateTexture");
695 }
681 } 696 }
682 697
683 public string llGetTexture(int face) 698 public string llGetTexture(int face)
@@ -693,8 +708,11 @@ namespace OpenSim.Region.ScriptEngine.Common
693 texface = tex.GetFace((uint)face); 708 texface = tex.GetFace((uint)face);
694 return texface.TextureID.ToString(); 709 return texface.TextureID.ToString();
695 } 710 }
696 NotImplemented("llGetTexture"); 711 else
697 return String.Empty; 712 {
713 NotImplemented("llGetTexture");
714 return String.Empty;
715 }
698 } 716 }
699 717
700 public void llSetPos(LSL_Types.Vector3 pos) 718 public void llSetPos(LSL_Types.Vector3 pos)