From 9c7539d41f773baa776b30755a12f6f073373b9c Mon Sep 17 00:00:00 2001
From: Luca Bonavita <mindrones@gmail.com>
Date: Tue, 27 Jul 2010 15:30:53 +0000
Subject: [PATCH] == game_props_visualiser ==

- api change :
  context.active_object.matrix -> context.active_object.matrix_world
---
 space_view3d_game_props_visualiser.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/space_view3d_game_props_visualiser.py b/space_view3d_game_props_visualiser.py
index b8bff891..25be3e7c 100644
--- a/space_view3d_game_props_visualiser.py
+++ b/space_view3d_game_props_visualiser.py
@@ -61,7 +61,7 @@ def calc_callback(self, context):
     # get matrices
     view_mat = context.space_data.region_3d.perspective_matrix
 
-    ob_mat = context.active_object.matrix
+    ob_mat = context.active_object.matrix_world
     total_mat = view_mat*ob_mat
     
     # calculate location info
@@ -71,7 +71,7 @@ def calc_callback(self, context):
     #ob=context.active_object
     for ob in context.selected_objects:
         locs = []
-        ob_mat = ob.matrix
+        ob_mat = ob.matrix_world
         total_mat = view_mat*ob_mat
  
         for p in ob.game.properties:
@@ -201,4 +201,4 @@ def unregister():
 
 
 if __name__ == "__main__":
-    register()
\ No newline at end of file
+    register()
-- 
GitLab