diff --git a/space_view3d_game_props_visualiser.py b/space_view3d_game_props_visualiser.py index b8bff891e14aef7d79b4d1a60f893d62aed1fe6f..25be3e7c3015464cd73e6e96459b6962853fe128 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()