OSDN Git Service

[crash reporter] Don't interpolate is BasePrim is null
authorLatif Khalifa <latifer@streamgrid.net>
Mon, 5 Sep 2011 22:45:11 +0000 (22:45 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Mon, 5 Sep 2011 22:45:11 +0000 (22:45 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@1136 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Rendering/RenderingHelpers.cs

index 35c3b54..bc8532c 100644 (file)
@@ -165,6 +165,8 @@ namespace Radegast.Rendering
         /// <param name="time">Time since the last call (last frame time in seconds)</param>\r
         public virtual void Step(float time)\r
         {\r
+            if (BasePrim == null) return;\r
+\r
             // Don't interpolate when parent changes (sit/stand link/unlink)\r
             if (previousParent != BasePrim.ParentID)\r
             {\r